From 65bc81d6fef619d7aadc5c7116be52860539f17a Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 23 Apr 2005 18:05:07 -0700 Subject: [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 b407d75..2ec6c29 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; -- cgit v0.10.2-6-g49f6