Git development
 help / color / mirror / Atom feed
* [PATCH] Fix broken diff-cache output on added files
@ 2005-04-23 23:43 Petr Baudis
  0 siblings, 0 replies; only message in thread
From: Petr Baudis @ 2005-04-23 23:43 UTC (permalink / raw)
  To: torvalds; +Cc: git

Added files were errorneously reported with the - prefix by diff-cache,
obviously leading to great confusion.

Signed-off-by: Petr Baudis <pasky@ucw.cz>

Index: diff-cache.c
===================================================================
--- 099679c62a98433d9d9b38581f39563c9574478e/diff-cache.c  (mode:100644 sha1:b407d753e520fa0b1523d770d98b3015af197275)
+++ 3df862ae5cc66733dab3d8bd5c4ea359b2ca1884/diff-cache.c  (mode:100644 sha1:2ec6c29ab6b79a10277a2ff9021a2032d656abf0)
@@ -57,7 +57,7 @@
 		}
 		/* 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;


-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-23 23:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 23:43 [PATCH] Fix broken diff-cache output on added files Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox