Coloured diff/log by default

Martin Pool mbp at sourcefrog.net
Thu May 14 00:55:57 BST 2009


2009/5/14 Daniel Clemente <dcl441-bugs at yahoo.com>:
>
> I'm wondering why, if Bazaar is meant to be usable, doesn't it default to the nicest output formats.
>
>
> 1.  „added lines“=green  and „removed lines“=red  makes a diff easier and faster to understand.
>
>  So: why isn't „bzr diff“ an alias to „bzr cdiff“?
>
>
>
> 2. But we also probably want „bzr cdiff >file.patch“ NOT to write colour codes to the file… unless you specify „bzr cdiff --color=always >file“, of course. Bzr can already detect if there's a terminal (bug 242115).
>
>  Now, --color=always is the default. There's also --color=auto and --color=never
>
>  Why isn't --color=auto the default instead of „always“?

Well, I think first of all we should merge cdiff into diff; it's an
artifact of starting out as a plugin that they're separate.  Then
--color=auto can be the default.  Do you want to try a patch for it?

> 3. „log“ can also use a different color for headers.
>
> 4. „bzr vis“ should always show coloured output in diffs

I assume you're talking about the gui and it does that for me.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list