summaryrefslogtreecommitdiff
path: root/revision.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-09-17 20:53:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-17 20:53:48 (GMT)
commit8b6f6075befc935faa3330ee467e537694ac1d32 (patch)
treed686d1da77d63df83acb6f5ac4bbea7cbd066a56 /revision.h
parent0faaf7eafcd87c1e0b00e97018740153a048291a (diff)
parenta12cbe23ef765e89ba5b0872f6330a693ea391d2 (diff)
downloadgit-8b6f6075befc935faa3330ee467e537694ac1d32.zip
git-8b6f6075befc935faa3330ee467e537694ac1d32.tar.gz
git-8b6f6075befc935faa3330ee467e537694ac1d32.tar.bz2
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/revision.h b/revision.h
index 007278c..1225957 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;