Re: [RFC] stash: support filename argument

2017-01-16 Thread Jeff King
On Mon, Jan 16, 2017 at 01:41:02AM +0100, Stephan Beyer wrote: > 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 under

Re: [RFC] stash: support filename argument

2017-01-16 Thread Thomas Gummerer
On 01/15, Junio C Hamano wrote: > Thomas Gummerer writes: > > > While working on a repository, it's often helpful to stash the changes > > of a single or multiple files, and leave others alone. Unfortunately > > git currently offers no such option. git stash -p can be used to work > > around th

Re: [RFC] stash: support filename argument

2017-01-16 Thread Johannes Schindelin
Hi, On Mon, 16 Jan 2017, Johannes Schindelin wrote: > On Sun, 15 Jan 2017, Junio C Hamano wrote: > > > I haven't spent enough time to think if it even makes sense to > > "stash" partially, leaving the working tree still dirty. > > Think no more! We already support that with --keep-index, and it

Re: [RFC] stash: support filename argument

2017-01-16 Thread Johannes Schindelin
Hi Junio, On Sun, 15 Jan 2017, Junio C Hamano wrote: > I haven't spent enough time to think if it even makes sense to > "stash" partially, leaving the working tree still dirty. Think no more! We already support that with --keep-index, and it is a very useful feature. Ciao, Johannes

Re: [RFC] stash: support filename argument

2017-01-16 Thread Marc Strapetz
On 16.01.2017 01:41, Stephan Beyer wrote: Hi, On 01/16/2017 01:21 AM, Junio C Hamano wrote: I haven't spent enough time to think if it even makes sense to "stash" partially, leaving the working tree still dirty. My initial reaction was "then stashing away the dirty WIP state to get a spiffy cl

Re: [RFC] stash: support filename argument

2017-01-15 Thread Stephan Beyer
Hi, On 01/16/2017 01:21 AM, Junio C Hamano wrote: > I haven't spent enough time to think if it even makes sense to > "stash" partially, leaving the working tree still dirty. My initial > reaction was "then stashing away the dirty WIP state to get a spiffy > clean working environment becomes impos

Re: [RFC] stash: support filename argument

2017-01-15 Thread Junio C Hamano
Thomas Gummerer writes: > While working on a repository, it's often helpful to stash the changes > of a single or multiple files, and leave others alone. Unfortunately > git currently offers no such option. git stash -p can be used to work > around this, but it's often impractical when there ar

[RFC] stash: support filename argument

2017-01-15 Thread Thomas Gummerer
While working on a repository, it's often helpful to stash the changes of a single or multiple files, and leave others alone. Unfortunately git currently offers no such option. git stash -p can be used to work around this, but it's often impractical when there are a lot of changes over multiple f