git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] diff.c: fix a graph output bug
@ 2010-07-08 15:12 struggleyb.nku
  2010-07-09  0:15 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: struggleyb.nku @ 2010-07-08 15:12 UTC (permalink / raw)
  To: git; +Cc: gitster

From: Bo Yang <struggleyb.nku@gmail.com>

Ouput the line_prefix ahead of color sequence.

Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
---
 diff.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/diff.c b/diff.c
index 3aa695d..17873f3 100644
--- a/diff.c
+++ b/diff.c
@@ -2627,8 +2627,7 @@ static void fill_metainfo(struct strbuf *msg,
 			    (!fill_mmfile(&mf, two) && diff_filespec_is_binary(two)))
 				abbrev = 40;
 		}
-		strbuf_addf(msg, "%s%sindex %s..", set,
-			    line_prefix,
+		strbuf_addf(msg, "%s%sindex %s..", line_prefix, set,
 			    find_unique_abbrev(one->sha1, abbrev));
 		strbuf_addstr(msg, find_unique_abbrev(two->sha1, abbrev));
 		if (one->mode == two->mode)
-- 
1.7.0.2.273.gc2413.dirty

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-11  6:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-08 15:12 [PATCH] diff.c: fix a graph output bug struggleyb.nku
2010-07-09  0:15 ` Junio C Hamano
2010-07-09  0:57   ` Junio C Hamano
2010-07-09  1:04     ` Nazri Ramliy
2010-07-09  1:09       ` Junio C Hamano
2010-07-11  6:10     ` Bo Yang

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).