summaryrefslogtreecommitdiff
path: root/builtin-diff-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-11-03 14:59:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-20 23:10:29 (GMT)
commit8b3dce565084c89ceb19f7ccf0fe22ffd365f7fd (patch)
tree8af65ea645a32792642903fac65a4d776aa2408f /builtin-diff-tree.c
parent63d564b300274ec71a274f9b672366d07ae5620a (diff)
downloadgit-8b3dce565084c89ceb19f7ccf0fe22ffd365f7fd.zip
git-8b3dce565084c89ceb19f7ccf0fe22ffd365f7fd.tar.gz
git-8b3dce565084c89ceb19f7ccf0fe22ffd365f7fd.tar.bz2
Teach --stdin option to "log" family
Move the logic to read revs from standard input that rev-list knows about from it to revision machinery, so that all the users of setup_revisions() can feed the list of revs from the standard input when "--stdin" is used on the command line. Allow some users of the revision machinery that want different semantics from the "--stdin" option to disable it by setting an option in the rev_info structure. This also cleans up the kludge made to bundle.c via cut and paste. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-diff-tree.c')
-rw-r--r--builtin-diff-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-diff-tree.c b/builtin-diff-tree.c
index 79cedb7..2380c21 100644
--- a/builtin-diff-tree.c
+++ b/builtin-diff-tree.c
@@ -104,6 +104,7 @@ int cmd_diff_tree(int argc, const char **argv, const char *prefix)
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
opt->abbrev = 0;
opt->diff = 1;
+ opt->disable_stdin = 1;
argc = setup_revisions(argc, argv, opt, NULL);
while (--argc > 0) {