Re: [RFC] stash: support filename argument
- From
Jeff King <peff@peff.net>
- Date
- Jan 16, 2017, 23:49 UTC
- Message-ID
- <20170116234924.72aeqo6ltrgov54o@sigill.intra.peff.net>
- In-Reply-To
- <c0d46a97-b1c0-d9c9-e475-28e0368ac61f@gmx.net>
On Mon, Jan 16, 2017 at 01:41:02AM +0100, Stephan Beyer wrote:
Show 5 quoted lines
> However, going further, the next feature to be requested could be "git > stash --patch" ;D This leads me to think that the mentioned simulation > of partial stashes might be something everyone might come up with who > has basic understanding of git features and "git stash", and might be > the more flexible and probably better solution to the problem.
Don't we have "git stash -p" already?[1]
I use it all the time, and it's very handy for picking apart changes. I have often wanted "git stash -p <paths>" to work, though.
-Peff
[1] I had to double check that it was not something I hacked together
locally and forgot about. :) It's from dda1f2a5c (Implement 'git
stash save --patch', 2009-08-13). I also worked up a "git stash
apply -p", but I remember it was buggy, and I haven't looked at it
in years. It's at:https://github.com/peff/git/commit/2c4ed43987b20cfb1605fbd7648d81e454c45c71
if anybody is curious. I don't even recall what the problems were at
this point.