Coloured diff/log by default
Jelmer Vernooij
jelmer at vernstok.nl
Thu May 14 01:59:10 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Daniel,
Daniel Clemente wrote:
> 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“?
+1 in general, but cdiff needs better color assignments. The current
ones e.g. show the contents of diffs in bright grey on white in my terminal.
Does cdiff still only work on *nix, or also on Windows these days?
> 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“?
>
>
> 3. „log“ can also use a different color for headers.
>
> 4. „bzr vis“ should always show coloured output in diffs
This already happens if you have the right packages installed
(gtksourceview IIRC).
> PS: these four suggestions are for instance what git does, and it feels nicer in this way
Git doesn't color anything by default, at least not in the text UI. Do
you perhaps have custom configuration to enable this?
Cheers,
Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iJwEAQECAAYFAkoLbNoACgkQDLQl4QYPZuUxvwP9FY78p5twGPIwEGo7iapZ0ahJ
rlnnUFZlP4rOO8863zEchteJJbxOXuwcxHfgM/ku2nk0p7OURS9PwTdFxOGQpo1Z
rlBVIsUqo+aTxE589ZJWgueUC9s4gdcwnqjo2st83yWr6JBDUslxGjaG75uAqc2e
gEUiHYsQfZensQxLH14=
=eETt
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list