summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5cda49)
raw | patch | inline | side by side (parent: b5cda49)
author | Paul Mackerras <paulus@samba.org> | |
Sat, 16 May 2009 11:06:01 +0000 (21:06 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sat, 16 May 2009 11:08:44 +0000 (21:08 +1000) |
Commit 785b7535 ("gitk: use --textconv to generate diff text")
added the --textconv flag to the git diff commands used to
display commit diffs. Since some people use newer gitk with older
git installations, this adds a check on the git version to check
that it understands --textconv before using it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
added the --textconv flag to the git diff commands used to
display commit diffs. Since some people use newer gitk with older
git installations, this adds a check on the git version to check
that it understands --textconv before using it.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index dcbfdc65389f02f63848df8bb55c9b52ba6f41b6..571078247251f6c03f7d4e9af5f48476c1490efa 100755 (executable)
--- a/gitk
+++ b/gitk
global ignorespace
global limitdiffs vfilelimit curview
global diffencoding targetline diffnparents
+ global git_version
- set cmd [diffcmd $ids "-p --textconv -C --cc --no-commit-id -U$diffcontext"]
+ set textconv {}
+ if {[package vcompare $git_version "1.6.1"] >= 0} {
+ set textconv "--textconv"
+ }
+ set cmd [diffcmd $ids "-p $textconv -C --cc --no-commit-id -U$diffcontext"]
if {$ignorespace} {
append cmd " -w"
}
set nullfile "/dev/null"
set have_tk85 [expr {[package vcompare $tk_version "8.5"] >= 0}]
+set git_version [lindex [exec git version] end]
set runq {}
set history {}