summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7fc9d69)
raw | patch | inline | side by side (parent: 7fc9d69)
author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 23 Aug 2005 17:47:54 +0000 (10:47 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 23 Aug 2005 19:42:58 +0000 (12:42 -0700) |
This makes the argument to --default and any --flags arguments should up
correctly, and makes "--" together with --flags act sanely.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
correctly, and makes "--" together with --flags act sanely.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-parse.c | patch | blob | history |
diff --git a/rev-parse.c b/rev-parse.c
index f1f5163447e98f1afb65137fd7cc9db7ff793b29..9281b45d1f54dda858d7adff14e90f8e94eccc13 100644 (file)
--- a/rev-parse.c
+++ b/rev-parse.c
if (do_rev_argument && is_rev_argument(arg))
show_rev_arg(arg);
else
- show_norev(arg);
+ show(arg);
}
static void show_default(void)
show_rev(NORMAL, sha1, s);
return;
}
- show_arg(s);
+ show_norev(s);
}
}
if (*arg == '-') {
if (!strcmp(arg, "--")) {
show_default();
- if (revs_only)
+ if (revs_only || flags_only)
break;
as_is = 1;
}