]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.c
dir.c: unify is_excluded and is_path_excluded APIs
[thirdparty/git.git] / revision.c
index cf620c6b3693e2d18b2cacd33574a03b34e4c48e..eb981288686a2c7cd8c854e3f414b606ed4f8c69 100644 (file)
@@ -2022,10 +2022,11 @@ static struct commit_list **simplify_one(struct rev_info *revs, struct commit *c
                if (revs->first_parent_only)
                        break;
        }
-       if (!revs->first_parent_only)
-               cnt = remove_duplicate_parents(commit);
-       else
+
+       if (revs->first_parent_only)
                cnt = 1;
+       else
+               cnt = remove_duplicate_parents(commit);
 
        /*
         * It is possible that we are a merge and one side branch