From: Petr Baudis Date: Sun, 24 Apr 2005 01:05:07 +0000 (-0700) Subject: [PATCH] Fix broken diff-cache output on added files X-Git-Tag: v0.99~771 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=65bc81d6fef619d7aadc5c7116be52860539f17a;p=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 Signed-off-by: Linus Torvalds --- diff --git a/diff-cache.c b/diff-cache.c index b407d753e..2ec6c29ab 100644 --- a/diff-cache.c +++ b/diff-cache.c @@ -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;