Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-rev-parse: pass on "--" flag when required
[gitweb.git]
/
rev-parse.c
diff --git
a/rev-parse.c
b/rev-parse.c
index 85230dfaa9d943938bffa0266490fd6956ee7a4f..243f89f3ccd5b96dc517249673d4cfc994ddb888 100644
(file)
--- a/
rev-parse.c
+++ b/
rev-parse.c
@@
-174,6
+174,10
@@
int main(int argc, char **argv)
if (*arg == '-') {
if (!strcmp(arg, "--")) {
as_is = 1;
+ show_default();
+ /* Pass on the "--" if we show anything but files.. */
+ if (filter & (DO_FLAGS | DO_REVS))
+ show_file(arg);
continue;
}
if (!strcmp(arg, "--default")) {