зеркало из https://github.com/microsoft/git.git
[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:
Родитель
93256315b2
Коммит
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 */
|
/* 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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче