Re: Stashing individual files
- From
- Tor Arntsen <tor@spacetec.no>
- Date
- Jan 4, 2012, 10:12 UTC
- Message-ID
- <CABNEGjzRZu_hpN+Do4=4abBKp0o3uKfrd-_A2y53a7V4mteNnw@mail.gmail.com>
- In-Reply-To
- <20120103190612.GC20926@sigill.intra.peff.net>
On Tue, Jan 3, 2012 at 20:06, Jeff King <peff@peff.net> wrote:
Show 10 quoted lines
> IOW, make the "--" a requirement for specifying filenames. The only > regression is that "--" as a single argument can no longer be used in > stash messages. So this works now: > > git stash save working on foo -- needs bar > > but would be interpreted under my proposal as stashing "needs" and "bar" > with the message "working on foo". You would instead have to spell it: > > git stash save "working on foo -- needs bar"
For what it's worth, that's how I always add messages to stash.. with quotes. It had never occured to me to use the form git stash save working on foo -- needs bar (no quotes), it's so ingrained that a multi-word message should be quoted that I would never have thought of even trying without the quotes! :-)
-Tor