[PATCH] Use the first line of commit message in "log --line"

Martin Pool mbp at canonical.com
Tue May 30 07:39:02 BST 2006


On 28 May 2006, Matthieu Moy <Matthieu.Moy at imag.fr> wrote:
> Hi,
> 
> I started a discussion some time ago about enforcing the convention in
> bzr that the first line of commit messages would be the patch summary,
> and the following would be the detailed log.
> 
> There were two things to do for that:
> 
> 1) Make "bzr log --line" show only the first line
> 
> 2) Allow someone to enter a multi-line comment with -m "something".
>    (without relying on the shell's multi-line support)
> 
> The following path does this. For 2), I've simply allowed "\n" to be
> used as a line separator in the argument of -m.

Like Robert, I agree with #1 but not with your implementation of #2.
It's quite reasonable and common to want a literal \n in a commit
message.

If there were a command line option to turn this on that might be OK.

Another approach would be to accept multiple -m options, each giving one
line of the message.
-- 
Martin




More information about the bazaar mailing list