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

Re: why can't one alias `git stash`?

From
Matthias Aßhauer <mha1993@live.de>
Date
Aug 16, 2025, 09:15 UTC
Message-ID
<DB9P250MB06920D87A02A7FE81F88C034A537A@DB9P250MB0692.EURP250.PROD.OUTLOOK.COM>
In-Reply-To
<d8b279098a41949eef06f26d3f09c3950486380b.camel@scientia.org>
On Sat, 16 Aug 2025, Christoph Anton Mitterer wrote:
> As mentioned in the other thread, IMO it sounds rather brittle if
> aliases are considered at all in scripting.

How would they not be considered? There is no --ignore-aliases option (because it would currently do nothing usefull), so git doesn't know if its called from a script. And if we where to add such an option, existing scripts wouldn't use it.

Best regards
Matthias
Previous: Christoph Anton MittererNext: Junio C Hamano
Message 9 of 12 in “why can't one alias `git stash`?”
  1. Christoph Anton MittererAug 15, 2025
  2. Junio C HamanoAug 15, 2025
  3. Christoph Anton MittererAug 15, 2025
  4. Elijah NewrenAug 15, 2025
  5. rsbecker@nexbridge.comAug 15, 2025
  6. Christoph Anton MittererAug 16, 2025
  7. Junio C HamanoAug 15, 2025
  8. Christoph Anton MittererAug 16, 2025
  9. Matthias AßhauerAug 16, 2025
  10. Junio C HamanoAug 19, 2025
  11. Christoph Anton MittererAug 19, 2025
  12. Christoph Anton MittererAug 16, 2025

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.