summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2005-04-24 01:05:07 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-24 01:05:07 (GMT)
commit65bc81d6fef619d7aadc5c7116be52860539f17a (patch)
tree9adb399af84228740555d732732983b7a02b019d
parent93256315b2444601a35484f4fb76cd5723284201 (diff)
downloadgit-65bc81d6fef619d7aadc5c7116be52860539f17a.zip
git-65bc81d6fef619d7aadc5c7116be52860539f17a.tar.gz
git-65bc81d6fef619d7aadc5c7116be52860539f17a.tar.bz2
[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>
-rw-r--r--diff-cache.c2
1 files changed, 1 insertions, 1 deletions
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;