git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Stashing individual files

From
TATor 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
Previous: Junio C Hamano
Message 6 of 6 in “Stashing individual files”
  1. Chris LeongJan 2, 2012
  2. Jeff KingJan 3, 2012
  3. Junio C HamanoJan 3, 2012
  4. Jeff KingJan 3, 2012
  5. Junio C HamanoJan 3, 2012
  6. Tor ArntsenJan 4, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.