Skip to contentSkip to conversation

Bug? Short command line options

DISCUSSION Anatoly Borodin 2 participants 2 messages Sep 22, 2016 – Sep 23, 2016

lore
Share & tools
lore
#0 lore raw

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

?

Signature · 2 lines
Mit freundlichen Grüßen,
Anatoly Borodin
#1 lore raw
Quoted 16 lines · Anatoly Borodin

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

Quoted 7 lines

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