]> git.ipfire.org Git - thirdparty/git.git/blobdiff - list-objects.c
list-objects: reduce one argument in mark_edges_uninteresting
[thirdparty/git.git] / list-objects.c
index 3dd4a960190a1b0016b26dec9187692111b73e3f..db8ee4f04deb8093dd56f042ae0680a0b06ca20b 100644 (file)
@@ -145,11 +145,10 @@ static void mark_edge_parents_uninteresting(struct commit *commit,
        }
 }
 
-void mark_edges_uninteresting(struct commit_list *list,
-                             struct rev_info *revs,
-                             show_edge_fn show_edge)
+void mark_edges_uninteresting(struct rev_info *revs, show_edge_fn show_edge)
 {
-       for ( ; list; list = list->next) {
+       struct commit_list *list;
+       for (list = revs->commits; list; list = list->next) {
                struct commit *commit = list->item;
 
                if (commit->object.flags & UNINTERESTING) {