{"thread":{"id":"10326","subject":"[PATCH] gitk: disable colours when calling git log","startedAt":"2007-10-16T22:33:04Z","lastAt":"2007-10-16T22:33:04Z","messageCount":1,"participants":["Sam Vilain"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"56138","messageId":"1192573984-26725-1-git-send-email-sam.vilain@catalyst.net.nz","threadId":"10326","inReplyTo":null,"subject":"[PATCH] gitk: disable colours when calling git log","fromName":"Sam Vilain","fromEmail":"sam.vilain@catalyst.net.nz","sentAt":"2007-10-16T22:33:04Z","receivedAt":"2007-10-16T22:33:04Z","isPatch":true,"sender":{"key":"sam@vilain.net","avatar":"https://gravatar.com/avatar/8fc840ca854dbf6f7065b4335e3b934951c1dca3b11db688e95e471901f8f4a8?d=mp&s=160"},"body":"If the user specifies 'diff.color = 1' in their configuration file,\nthen gitk will not start.  Disable colours when calling git log.\n\nSigned-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>\n---\n gitk |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/gitk b/gitk\nindex 300fdce..999e3c2 100755\n--- a/gitk\n+++ b/gitk\n@@ -92,7 +92,7 @@ proc start_rev_list {view} {\n \tset order \"--date-order\"\n     }\n     if {[catch {\n-\tset fd [open [concat | git log -z --pretty=raw $order --parents \\\n+\tset fd [open [concat | git log --no-color -z --pretty=raw $order --parents \\\n \t\t\t --boundary $viewargs($view) \"--\" $viewfiles($view)] r]\n     } err]} {\n \terror_popup \"Error executing git rev-list: $err\"\n-- \n1.5.3.2.3.g2f2dcc-dirty\n"}]}