@matheusbsbs / matheus-bagliano / commits / 0166419a19
Fork 0

gitk: disable colours when calling git log

If the user specifies 'diff.color = 1' in their configuration file, then gitk will not start. Disable colours when calling git log. Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Sam Vilain committed Oct 17, 2007 at 11:33 UTC 0166419a197cea0ceef3aed8c72023deb015ecf4
1 file changed +1 -1
gitk
+1 -1
@@ -92,7 +92,7 @@ proc start_rev_list {view} {
92 set order "--date-order"
93 }
94 if {[catch {
95 - set fd [open [concat | git log -z --pretty=raw $order --parents \
95 + set fd [open [concat | git log --no-color -z --pretty=raw $order --parents \
96 --boundary $viewargs($view) "--" $viewfiles($view)] r]
97 } err]} {
98 error_popup "Error executing git rev-list: $err"