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

2017-03-21 Thread Jeff King
On Tue, Mar 21, 2017 at 10:12:18PM +, 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 su

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

2017-03-21 Thread Thomas Gummerer
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