Re: [PATCH] Colourise git-branch output

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, December 11, 2006 - 10:41 pm

On Mon, 11 Dec 2006, Junio C Hamano wrote:

I wish you'd learn to use the proper syntax ;)

It would be

	[color "diff"]
		old = red
		new = green

and what's nice about it is that you can also do

	[color "diff"]
		auto
		old = red
		new = green

and the config file rules for booleans are such that a config variable 
without the "= val" part parses the same as "= true", so you can now do

	git repo-config --bool color.diff.auto

and it will say "true".

Now, I just think that would be a nice syntax.

Of course, for legacy reasons, and for people who rather than keeping the 
_color_ information together want to keep the _diff_ information together, 
we can/probably-should support both color.diff.* and diff.color.* formats.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Colourise git-branch output, Andy Parkins, (Mon Dec 11, 3:10 pm)
Re: [PATCH] Colourise git-branch output, Junio C Hamano, (Mon Dec 11, 3:47 pm)
Re: [PATCH] Colourise git-branch output, Sean, (Mon Dec 11, 5:38 pm)
Re: [PATCH] Colourise git-branch output, Junio C Hamano, (Mon Dec 11, 6:11 pm)
Re: [PATCH] Colourise git-branch output, Sean, (Mon Dec 11, 6:24 pm)
Re: [PATCH] Colourise git-branch output, Linus Torvalds, (Mon Dec 11, 8:39 pm)
Re: [PATCH] Colourise git-branch output, Junio C Hamano, (Mon Dec 11, 10:07 pm)
Re: [PATCH] Colourise git-branch output, Linus Torvalds, (Mon Dec 11, 10:41 pm)
Re: [PATCH] Colourise git-branch output, Junio C Hamano, (Tue Dec 12, 12:58 am)