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

Re: [PATCH] Allow an alias to start with "-p"

From
Junio C Hamano <junkio@cox.net>
Date
Jul 24, 2006, 06:32 UTC
Message-ID
<7v8xmjh5sv.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0607190125150.29667@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
> Now, something like
>
> 	[alias]
> 		pd = -p diff
>
> works as expected.

I like what it wants to do but I am afraid this leads to an unmaintainable code (a micronit that already shows what I mean is that you can say "git --paginate diff", but you cannot say "pd = --paginate diff" in the configuration file).

Is there a cleaner way to do it without duplicating the argument loop of git.c::main()?

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 8 in “Allow an alias to start with "-p"”
  1. Allow an alias to start with "-p"Johannes Schindelin, Jul 18, 2006
  2. Junio C HamanoJul 24, 2006
  3. Allow an alias to start with "-p"Johannes Schindelin, Jul 24, 2006
  4. Junio C HamanoJul 25, 2006
  5. Johannes SchindelinJul 25, 2006
  6. Jeff KingJul 25, 2006
  7. Johannes SchindelinJul 25, 2006
  8. Junio C HamanoJul 25, 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.