aboutsummaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-15 23:46:36 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-15 23:46:36 -0700
commit6b9c58f4669b3832ed2830f0cb1a307ea6bc6063 (patch)
treec245781ec9db1307e82a6b5a7cbc0e4f4c89c6fc /http-push.c
parent8c1f0b44c59530dea8007a9f5b69d0fac6aea3b1 (diff)
downloadgit-6b9c58f4669b3832ed2830f0cb1a307ea6bc6063.tar.gz
git-6b9c58f4669b3832ed2830f0cb1a307ea6bc6063.tar.xz
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 'http-push.c')
-rw-r--r--http-push.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http-push.c b/http-push.c
index 19a0f772e..4a9dcf2bf 100644
--- a/http-push.c
+++ b/http-push.c
@@ -2498,6 +2498,7 @@ int main(int argc, char **argv)
commit_argv[3] = old_sha1_hex;
commit_argc++;
}
+ init_revisions(&revs);
setup_revisions(commit_argc, commit_argv, &revs, NULL);
free(new_sha1_hex);
if (old_sha1_hex) {