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

Re: [PATCH] Support for configurable git command aliases (v3)

From
Petr Baudis <pasky@suse.cz>
Date
Jun 7, 2006, 00:25 UTC
Message-ID
<20060607002550.GB2609@pasky.or.cz>
In-Reply-To
<20060607001638.5175.77792.stgit@machine.or.cz>

Dear diary, on Wed, Jun 07, 2006 at 02:16:38AM CEST, I got a letter where Petr Baudis <pasky@suse.cz> said that...

Show 13 quoted lines
> This patch adds support for configurable aliases for git commands -
> "alias.WHATEVER = which ever" will kick in when you do "git WHATEVER"
> and substitute WHATEVER with "which ever" (splitted to arguments at
> whitespaces).
> 
> The second version does all the work in handle_aliases() which was
> inspired by Johannes Schindelin's patch.
> 
> The third version does not expand aliases when called as 'git-something'
> or when the $GIT_NO_ALIASES environment variable is set; that is now
> done in git-sh-setup.sh. The documentation has been slightly expanded.
> 
> Signed-off-by: Petr Baudis <pasky@suse.cz>

So, I chose the approach suggested by Linus, but I do not have a strong preference and if Junio still wants, we can rather just disallow aliases with the same name as builtins - I just think that it *might* be practical to add some default options to the commands without relearning your typing habits.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
A person is just about as big as the things that make them angry.
Previous: Petr BaudisNext: Junio C Hamano
Message 2 of 3 in “Support for configurable git command aliases (v3)”
  1. Support for configurable git command aliases (v3)Petr Baudis, Jun 7, 2006
  2. Petr BaudisJun 7, 2006
  3. Junio C HamanoJun 7, 2006

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.