diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-09-17 23:53:48 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-17 23:53:48 +0300 |
commit | 8b6f6075befc935faa3330ee467e537694ac1d32 (patch) | |
tree | d686d1da77d63df83acb6f5ac4bbea7cbd066a56 /revision.h | |
parent | 0faaf7eafcd87c1e0b00e97018740153a048291a (diff) | |
parent | a12cbe23ef765e89ba5b0872f6330a693ea391d2 (diff) |
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
Diffstat (limited to 'revision.h')
-rw-r--r-- | revision.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/revision.h b/revision.h index 007278cc11..1225957927 100644 --- a/revision.h +++ b/revision.h @@ -82,6 +82,11 @@ struct rev_info { */ int rev_input_given; + /* + * Whether we read from stdin due to the --stdin option. + */ + int read_from_stdin; + /* topo-sort */ enum rev_sort_order sort_order; |