Bug? Short command line options

2 messages, 2 authors, 2016-09-23 · open the first message on its own page

Bug? Short command line options

From: Anatoly Borodin <hidden>
Date: 2016-09-22 19:03:45

Hi All,


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

?

-- 
Mit freundlichen Grüßen,
Anatoly Borodin

Re: Bug? Short command line options

From: Jeff King <hidden>
Date: 2016-09-23 04:48:04

On Thu, Sep 22, 2016 at 07:03:00PM +0000, Anatoly Borodin wrote:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help