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

Michael Ellerman michael at ellerman.id.au
Tue May 30 00:56:02 BST 2006


On 5/30/06, Robert Collins <robertc at robertcollins.net> wrote:
>
> firstline seems a little overcomplicated. A simpler version:
> def firstline(self, string):
> # using a type name as a variable name is frowned upon which is why we
> # use string, not str
>     return "".join(string.splitlines()[:1])

return string.splitlines()[0]  ?

cheers




More information about the bazaar mailing list