X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=rev-parse.c;h=243f89f3ccd5b96dc517249673d4cfc994ddb888;hb=bd321bcc51e95f644ac5335abe673afcbcaade62;hp=85230dfaa9d943938bffa0266490fd6956ee7a4f;hpb=7a3dd472ad2c69b7450a59eb2a35efb0698993d0;p=git.git diff --git a/rev-parse.c b/rev-parse.c index 85230dfa..243f89f3 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")) {