rev-list: don't show usage when we see empty ref patterns
commit0159ba3226f75fbd6d3dc0e92c325cb11f2f0699
authorJeff King <peff@peff.net>
Wed, 2 Aug 2017 22:26:06 +0000 (2 18:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Aug 2017 22:45:21 +0000 (2 15:45 -0700)
tree0aade2ac8ee74994b1c4b3087d0eadda5fc9f7cd
parent7ba826290aa448bb9d0d45c3bb4b34905b741013
rev-list: don't show usage when we see empty ref patterns

If the user gives us no starting point for a traversal, we
want to complain with our normal usage message. But if they
tried to do so with "--all" or "--glob", but that happened
not to match any refs, the usage message isn't helpful. We
should just give them the empty output they asked for
instead.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c
t/t6018-rev-list-glob.sh