diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-08-11 23:27:07 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-11 23:27:07 +0300 |
commit | 8fbaf0b13bc54819445f613e917c44ea52eef804 (patch) | |
tree | 9f02a6c5723b33fd6249d36a9573079560601e69 /builtin | |
parent | 9c1259a0da0cb37f4bf8926b162ccb73203589e1 (diff) | |
parent | 5d34d1ac06fe70fc0a7a8f35ddf9e7690114dda7 (diff) |
Merge branch 'jk/rev-list-empty-input'
"git log --tag=no-such-tag" showed log starting from HEAD, which
has been fixed---it now shows nothing.
* jk/rev-list-empty-input:
revision: do not fallback to default when rev_input_given is set
rev-list: don't show usage when we see empty ref patterns
revision: add rev_input_given flag
t6018: flesh out empty input/output rev-list tests
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/rev-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index e8f5048903..95b4128250 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -352,7 +352,8 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) if ((!revs.commits && reflog_walk_empty(revs.reflog_info) && (!(revs.tag_objects || revs.tree_objects || revs.blob_objects) && - !revs.pending.nr)) || + !revs.pending.nr) && + !revs.rev_input_given) || revs.diff) usage(rev_list_usage); |