aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rev-parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rev-parse.c b/rev-parse.c
index 85230dfaa..243f89f3c 100644
--- 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")) {