From 65bc81d6fef619d7aadc5c7116be52860539f17a Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 23 Apr 2005 18:05:07 -0700 Subject: [PATCH] [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-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2