Thread (22 messages) flat view 22 messages, 2 authors, 2017-03-22

Re: [PATCH v2 2/3] stash: pass the pathspec argument to git reset

From: Jeff King <hidden>
Date: 2017-03-21 22:20:08

On Tue, Mar 21, 2017 at 10:12:18PM +0000, Thomas Gummerer wrote:
For "git stash -p --no-keep-index", the pathspec argument is currently
not passed to "git reset".  This means that changes that are staged but
that are excluded from the pathspec still get unstaged by git stash -p.

Make sure that doesn't happen by passing the pathspec argument to the
git reset in question, bringing the behaviour in line with "git stash --
<pathspec>".

Signed-off-by: Thomas Gummerer <redacted>
---
 git-stash.sh           | 2 +-
 t/t3904-stash-patch.sh | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
This one looks good to me.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help