projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
git-fetch-pack: Implement client part of the multi_ack extension
[git.git]
/
rev-parse.c
diff --git
a/rev-parse.c
b/rev-parse.c
index
85230df
..
243f89f
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")) {