Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-03-29 05:28:04 +0400
committerJunio C Hamano <junkio@cox.net>2006-03-29 05:29:09 +0400
commit9181ca2c2b1f2897baa67ff8e48b1984822115b5 (patch)
tree73088b42320886b49064cb0517548fb373c3e648 /rev-list.c
parent5cdeae71ea7330c08cf96b581e2c7696949e3840 (diff)
rev-list: memory usage reduction.
We do not need to track object refs, neither we need to save commit unless we are doing verbose header. A lot of traversal happens inside prepare_revision_walk() these days so setting things up before calling that function is necessary. Signed-off-by: Junio C Hamano <junkio@cox.net> Acked-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rev-list.c b/rev-list.c
index 441c437855..0903edbcb5 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -358,6 +358,9 @@ int main(int argc, const char **argv)
(!(revs.tag_objects||revs.tree_objects||revs.blob_objects) && !revs.pending_objects))
usage(rev_list_usage);
+ save_commit_buffer = verbose_header;
+ track_object_refs = 0;
+
prepare_revision_walk(&revs);
if (revs.tree_objects)
mark_edges_uninteresting(revs.commits);
@@ -365,9 +368,6 @@ int main(int argc, const char **argv)
if (bisect_list)
revs.commits = find_bisection(revs.commits);
- save_commit_buffer = verbose_header;
- track_object_refs = 0;
-
show_commit_list(&revs);
return 0;