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

Re: git-send-email and aliases

From
Junio C Hamano <junkio@cox.net>
Date
Mar 28, 2007, 01:52 UTC
Message-ID
<7vk5x2m8wu.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070327110246.GA30217@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> On Tue, Mar 27, 2007 at 03:59:19AM -0700, Junio C Hamano wrote:
>
>> It might be easier but I do not think that is useful.  When
>> git-commit runs the $EDITOR for the commit log message, I think
>> people would expect (if you are using vi) "!!git log" to honor
>> their alias.
>
> Then git-commit can unset GIT_NOALIAS when it expects to call into
> "user" code such as the editor.

Surely, but then it is not just a matter of "setting GIT_NOALIAS at the top of all git programs" anymore. You need to audit the code.

> A potentially bigger problem with any such scheme is that non-git
> scripts would have to set GIT_NOALIAS. Not a big deal for new scripts,
> but it might break old scripts.

You are right. Both GIT_NOALIAS and "write git-foo if you do not want to be affected with alias" would fail that.

Previous: Jeff KingNext: Francis Moreau
Message 9 of 11 in “git-send-email and aliases”
  1. Francis MoreauMar 26, 2007
  2. Junio C HamanoMar 26, 2007
  3. Francis MoreauMar 26, 2007
  4. Francis MoreauMar 27, 2007
  5. Junio C HamanoMar 27, 2007
  6. Jeff KingMar 27, 2007
  7. Junio C HamanoMar 27, 2007
  8. Jeff KingMar 27, 2007
  9. Junio C HamanoMar 28, 2007
  10. Francis MoreauMar 27, 2007
  11. Nicolas VilzMar 26, 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.