summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be3cfa8)
raw | patch | inline | side by side (parent: be3cfa8)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 26 Apr 2005 17:13:31 +0000 (10:13 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 26 Apr 2005 17:13:31 +0000 (10:13 -0700) |
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>
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>
diff-cache.c | patch | blob | history |
diff --git a/diff-cache.c b/diff-cache.c
index 2ec6c29ab6b79a10277a2ff9021a2032d656abf0..c7fa84bffb07504890259fca1b05bd499847e1fe 100644 (file)
--- a/diff-cache.c
+++ b/diff-cache.c
for (i = 0; i < active_nr; i++) {
struct cache_entry *ce = active_cache[i];
if (!ce_stage(ce))
- break;
+ continue;
printf("%s: unmerged\n", ce->name);
while (remove_entry_at(i)) {
if (!ce_stage(active_cache[i]))