diff options
author | Petr Baudis <pasky@ucw.cz> | 2005-04-23 18:05:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-23 18:05:07 -0700 |
commit | 65bc81d6fef619d7aadc5c7116be52860539f17a (patch) | |
tree | 9adb399af84228740555d732732983b7a02b019d /diff-cache.c | |
parent | 93256315b2444601a35484f4fb76cd5723284201 (diff) | |
download | git-65bc81d6fef619d7aadc5c7116be52860539f17a.tar.gz |
[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>
Diffstat (limited to 'diff-cache.c')
-rw-r--r-- | diff-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-cache.c b/diff-cache.c index b407d753e5..2ec6c29ab6 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; |