Skip to content

Commit 5697ecc

Browse files
Junio C HamanoLinus Torvalds
authored andcommitted
[PATCH] diff-cache buglet
diff-cache attempts to first remove all merge entries before letting the diff_cache() do its work, but it incorrectly stops after the first merge-entry it finds. Fix by just replacing the "break" with a "continue". Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent be3cfa8 commit 5697ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void remove_merge_entries(void)
7676
for (i = 0; i < active_nr; i++) {
7777
struct cache_entry *ce = active_cache[i];
7878
if (!ce_stage(ce))
79-
break;
79+
continue;
8080
printf("%s: unmerged\n", ce->name);
8181
while (remove_entry_at(i)) {
8282
if (!ce_stage(active_cache[i]))

0 commit comments

Comments
 (0)