git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] shortlog: remove --help option parsing
@ 2007-10-01 10:20 Jonas Fonseca
  2007-10-01 11:42 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Jonas Fonseca @ 2007-10-01 10:20 UTC (permalink / raw)
  To: git

This option is handled globally.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 builtin-shortlog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 3fe7546..518f27f 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -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;
-- 
1.5.3.2.1029.gc1d178


-- 
Jonas Fonseca

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] shortlog: remove --help option parsing
  2007-10-01 10:20 [PATCH] shortlog: remove --help option parsing Jonas Fonseca
@ 2007-10-01 11:42 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2007-10-01 11:42 UTC (permalink / raw)
  To: Jonas Fonseca; +Cc: git

Hi,

On Mon, 1 Oct 2007, Jonas Fonseca wrote:

> -		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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-01 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-01 10:20 [PATCH] shortlog: remove --help option parsing Jonas Fonseca
2007-10-01 11:42 ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).