diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-08-16 16:52:06 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-28 11:54:18 -0700 |
commit | e76a5fb4593b80cdc9dda66809ae910e86b6ffbe (patch) | |
tree | 3223a109e5660fb0b321992921ffaa4e18e99c2b /builtin/rev-list.c | |
parent | cdab485853b405d6454d4974bdc3825134d85249 (diff) | |
download | git-e76a5fb4593b80cdc9dda66809ae910e86b6ffbe.tar.gz git-e76a5fb4593b80cdc9dda66809ae910e86b6ffbe.tar.xz |
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/rev-list.c')
-rw-r--r-- | builtin/rev-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index a5ec30d74..4fc161663 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -336,7 +336,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) if (prepare_revision_walk(&revs)) die("revision walk setup failed"); if (revs.tree_objects) - mark_edges_uninteresting(revs.commits, &revs, show_edge); + mark_edges_uninteresting(&revs, show_edge); if (bisect_list) { int reaches = reaches, all = all; |