Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
magit
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Debian Emacsen team
magit
Commits
f00dedd6
Commit
f00dedd6
authored
Jan 04, 2017
by
Kyle Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
magit-stash-drop: abort if multi-stash deletion is not confirmed
Fixes #2917.
parent
6bd79581
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Documentation/RelNotes/2.10.1.txt
Documentation/RelNotes/2.10.1.txt
+4
-0
lisp/magit-stash.el
lisp/magit-stash.el
+2
-1
No files found.
Documentation/RelNotes/2.10.1.txt
View file @
f00dedd6
...
...
@@ -4,5 +4,9 @@ Magit v2.10.1 Release Notes
Fixes since v2.10.0
-------------------
* When multiple stashes were selected by the region, responding "no"
when asked to confirm the deletion of these stashes resulted in a
type error. #2917
Authors
-------
lisp/magit-stash.el
View file @
f00dedd6
...
...
@@ -214,7 +214,8 @@ and forgo removing the stash."
"Remove a stash from the stash list.
When the region is active offer to drop all contained stashes."
(
interactive
(
list
(
--if-let
(
magit-region-values
'stash
)
(
magit-confirm
t
nil
"Drop %i stashes"
it
)
(
or
(
magit-confirm
t
nil
"Drop %i stashes"
it
)
(
user-error
"Abort"
))
(
magit-read-stash
"Drop stash"
))))
(
dolist
(
stash
(
if
(
listp
stash
)
(
nreverse
(
prog1
stash
(
setq
stash
(
car
stash
))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment