Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH WIP] git-stash: add new 'drop' subcommand

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:11

Paolo Bonzini [off-list ref] writes:
quoted
Also missing is the ability to drop multiple stash entries at
one time. I think reflog delete will have to be modified to
accommodate this. What happens is that the deletions are performed
in a loop, and each deletion shifts the reflog entries so that they
don't necessarily point to the same thing.
You just have to sort them backwards, either here or in git reflog.
quoted
+drop)
+	shift
+	drop_stash "$@"
drop_stash $(echo "$@" | tr ' ' '\n' | sort -runt\{ -k2)
Yes, but this makes me suspect that the parameter should be
simply "n m" instead of "stash@{n} stash@{m}".
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help