[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 коммит произвёл Linus Torvalds
Родитель 93256315b2
Коммит 65bc81d6fe
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 */ /* No matching 1-stage (tree) entry? Show the current one as added */
if (entries == 1 || !same_name(ce, ac[1])) { if (entries == 1 || !same_name(ce, ac[1])) {
show_file("-", ce); show_file("+", ce);
ac++; ac++;
entries--; entries--;
continue; continue;