shortlog: remove --help option parsing
PATCH 1/1 shortlog: remove --help option parsing
This option is handled globally.
Signed-off-by Jonas Fonseca <[email protected]>
--- builtin-shortlog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
builtin-shortlog.c +1 -1
@@ -264,7 +264,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix) wrap_lines =1 ;parse_wrap_args (argv[1 ], &in1, &in2, &wrap); } -else if (!strcmp (argv[1 ],"-h" ) || !strcmp (argv[1 ],"--help" )) +else if (!strcmp (argv[1 ],"-h" ))usage (shortlog_usage);else break ;
Signature · 5 lines
1.5.3.2.1029.gc1d178 -- Jonas Fonseca
Hi,
builtin-shortlog.c int cmd_shortlog(int argc, const char **argv, const char *prefix) · line 267
Quoted 2 lines · Jonas Fonseca
builtin-shortlog.c +1
-1-else if (!strcmp (argv[1 ],"-h" ) || !strcmp (argv[1 ],"--help" )) +else if (!strcmp (argv[1 ],"-h" ))
I see that this is my fault.
Thanks,
Dscho