Merge branch 'jk/rev-list-stdin-noop-is-ok'
"git rev-list --stdin </dev/null" used to be an error; it now shows no output without an error. "git rev-list --stdin --default HEAD" still falls back to the given default when nothing is given on the standard input. * jk/rev-list-stdin-noop-is-ok: rev-list: make empty --stdin not an error
This commit is contained in:
@ -493,7 +493,7 @@ 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.rev_input_given) ||
|
||||
!revs.rev_input_given && !revs.read_from_stdin) ||
|
||||
revs.diff)
|
||||
usage(rev_list_usage);
|
||||
|
||||
|
Reference in New Issue
Block a user