summaryrefslogtreecommitdiff
path: root/builtin/pack-objects.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-08-16 09:52:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-28 18:54:18 (GMT)
commite76a5fb4593b80cdc9dda66809ae910e86b6ffbe (patch)
tree3223a109e5660fb0b321992921ffaa4e18e99c2b /builtin/pack-objects.c
parentcdab485853b405d6454d4974bdc3825134d85249 (diff)
downloadgit-e76a5fb4593b80cdc9dda66809ae910e86b6ffbe.zip
git-e76a5fb4593b80cdc9dda66809ae910e86b6ffbe.tar.gz
git-e76a5fb4593b80cdc9dda66809ae910e86b6ffbe.tar.bz2
list-objects: reduce one argument in mark_edges_uninteresting
mark_edges_uninteresting() is always called with this form mark_edges_uninteresting(revs->commits, revs, ...); Remove the first argument and let mark_edges_uninteresting figure that out by itself. It helps answer the question "are this commit list and revs related in any way?" when looking at mark_edges_uninteresting implementation. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-objects.c')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index f069462..dd117b3 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -2378,7 +2378,7 @@ static void get_object_list(int ac, const char **av)
if (prepare_revision_walk(&revs))
die("revision walk setup failed");
- mark_edges_uninteresting(revs.commits, &revs, show_edge);
+ mark_edges_uninteresting(&revs, show_edge);
traverse_commit_list(&revs, show_commit, show_object, NULL);
if (keep_unreachable)