[PATCH] Fix broken diff-cache output on added files
Added files were errorneously reported with the - prefix by diff-cache, obviously leading to great confusion. Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
93256315b2
commit
65bc81d6fe
@ -57,7 +57,7 @@ static int diff_cache(struct cache_entry **ac, int entries)
|
||||
}
|
||||
/* No matching 1-stage (tree) entry? Show the current one as added */
|
||||
if (entries == 1 || !same_name(ce, ac[1])) {
|
||||
show_file("-", ce);
|
||||
show_file("+", ce);
|
||||
ac++;
|
||||
entries--;
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user