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

Re: Bug? Short command line options

From
Jeff King <peff@peff.net>
Date
Sep 23, 2016, 04:47 UTC
Message-ID
<20160923044757.7pwwzkqzkb2fqa7l@sigill.intra.peff.net>
In-Reply-To
<ns19t4$s0t$1@blaine.gmane.org>
On Thu, Sep 22, 2016 at 07:03:00PM +0000, Anatoly Borodin wrote:
Show 23 quoted lines
> is there a good reason why
> 
> 	git fetch -vpnf
> 
> works like
> 
> 	git fetch -v -p -n -f
> 
> and
> 	
> 	git commit -avem msg
> 
> works like
> 
> 	git commit -a -v -e -m msg
> 
> etc etc, but
> 
> 	git log -wWp
> 
> says
> 
> 	fatal: unrecognized argument: -wWp

Yes. The reason is that the arguments to git-log are passed to the revision.c parser, which predates our parse_options() infrastructure, and does not understand bundled options.

It could be updated to use parse_options(), but nobody has done so yet.
-Peff
Previous: Anatoly Borodin
Message 2 of 2 in “Bug? Short command line options”
  1. Anatoly BorodinSep 22, 2016
  2. Jeff KingSep 23, 2016

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.