[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:
Petr Baudis 2005-04-23 18:05:07 -07:00 committed by Linus Torvalds
parent 93256315b2
commit 65bc81d6fe

View file

@ -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;