login
Header Space

 
 

Re: [PATCH] Automatically line wrap long commit messages.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: <git@...>
Date: Tuesday, May 30, 2006 - 10:18 pm

Junio C Hamano <junkio@cox.net> wrote:

Actually I was thinking each -m would be its own paragraph so blank
lines would split each -m and maybe the -w60 should be a config
option in .git/config or .gitrc so it doesn't always need to be
supplied on the command line.

Personally I want blank lines between each -m and to always run
the message through fmt.  Others may want to run their commit
messages through other filters so maybe the filter itself is just
a config value which gets executed:

	[user]
		commitMessageFilter = fmt -w 60

or someone else might set:

	[user]
		commitMessageFilter = /home/user/bin/my-filter

where the filter accepts the message on STDIN and writes (the maybe
changed) message on STDOUT.

-- 
Shawn.
-
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:
Re: [PATCH] Automatically line wrap long commit messages., Junio C Hamano, (Mon May 29, 5:16 am)
Re: [PATCH] Automatically line wrap long commit messages., Junio C Hamano, (Tue May 30, 4:38 am)
Re: [PATCH] Automatically line wrap long commit messages., Shawn Pearce, (Tue May 30, 10:18 pm)
speck-geostationary