summaryrefslogtreecommitdiff
path: root/diff-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-16 06:46:36 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-16 06:46:36 (GMT)
commit6b9c58f4669b3832ed2830f0cb1a307ea6bc6063 (patch)
treec245781ec9db1307e82a6b5a7cbc0e4f4c89c6fc /diff-tree.c
parent8c1f0b44c59530dea8007a9f5b69d0fac6aea3b1 (diff)
downloadgit-6b9c58f4669b3832ed2830f0cb1a307ea6bc6063.zip
git-6b9c58f4669b3832ed2830f0cb1a307ea6bc6063.tar.gz
git-6b9c58f4669b3832ed2830f0cb1a307ea6bc6063.tar.bz2
Split init_revisions() out of setup_revisions()
Merging all three option parsers related to whatchanged is unarguably the right thing, but the fallout was too big to scare me away. Let's try it once again, but once step at time. This splits out init_revisions() call from setup_revisions(), so that the callers can set different defaults to match the traditional benaviour. The rev-list command is still broken in a big way, which is the topic of next step. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff-tree.c')
-rw-r--r--diff-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff-tree.c b/diff-tree.c
index 979f792b..e578798 100644
--- a/diff-tree.c
+++ b/diff-tree.c
@@ -69,6 +69,7 @@ int main(int argc, const char **argv)
git_config(git_diff_config);
nr_sha1 = 0;
+ init_revisions(opt);
opt->abbrev = 0;
argc = setup_revisions(argc, argv, opt, NULL);