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

Re: [PATCH] Make "git stash" configurable

From
Steven Grimm <koreth@midwinter.com>
Date
Dec 21, 2007, 18:26 UTC
Message-ID
<74FF0697-8157-4308-8BA4-A1C7D0C7D260@midwinter.com>
In-Reply-To
<7v3atw7x33.fsf@gitster.siamese.dyndns.org>
On Dec 21, 2007, at 9:54 AM, Junio C Hamano wrote:
Show 7 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>> It also makes portable scripts harder. It's easy to write a script
>> that works only if you have the option set ...
>
> In general I'd agree but in this particular case I do not think
> that applies.  Scripts can always say what they want, either
> "stash save" or "stash list".

I bet Matthieu meant that it's easy for someone who runs bare "git stash" all the time to forget that there's an option to make that command do something different, and to thus code up a local script that runs the command as they're used to running it. Such a script will work just fine for them but it'll break as soon as they give it to someone else who has the option set differently.

-Steve
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 11 in “Make "git stash" configurable”
  1. Make "git stash" configurableしらいしななこ, Dec 21, 2007
  2. Steven GrimmDec 21, 2007
  3. Matthieu MoyDec 21, 2007
  4. Junio C HamanoDec 21, 2007
  5. Steven GrimmDec 21, 2007
  6. Junio C HamanoDec 21, 2007
  7. Emit helpful status for accidental "git stash" saveWincent Colaiuta, Dec 22, 2007
  8. Junio C HamanoDec 22, 2007
  9. Emit helpful status for accidental "git stash" saveWincent Colaiuta, Dec 22, 2007
  10. Junio C HamanoDec 22, 2007
  11. Wincent ColaiutaDec 22, 2007

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.