summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorMark Levedahl <mdl123@verizon.net>2007-07-17 22:42:04 (GMT)
committerPaul Mackerras <paulus@samba.org>2007-07-22 12:25:46 (GMT)
commit86da5b6c978be1e64ec42c8b08e815a83f02493e (patch)
treec1786fdfe060b527f20f63a0ce1da788773b609c /gitk
parentef3192b8345ba73c1d7c86ed0a1f318f26d97dc6 (diff)
downloadgit-86da5b6c978be1e64ec42c8b08e815a83f02493e.zip
git-86da5b6c978be1e64ec42c8b08e815a83f02493e.tar.gz
git-86da5b6c978be1e64ec42c8b08e815a83f02493e.tar.bz2
[PATCH] gitk: Ignore ctrl-z as EOF on windows
Cygwin's Tcl is configured to honor any occurence of ctrl-z as an end-of-file marker, while some commits in the git repository and possibly elsewhere include that character in the commit comment. This causes gitk ignore commit history following such a comment and incorrect graphs. This change affects only Windows as Tcl on other platforms already has eofchar == {}. This fixes problems noted by me and by Ray Lehtiniemi, and the fix was suggested by Shawn Pierce. Signed-off-by: Mark Levedahl <mdl123@verizon.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index 995833f..d6f62b2 100755
--- a/gitk
+++ b/gitk
@@ -101,7 +101,7 @@ proc start_rev_list {view} {
set commfd($view) $fd
set leftover($view) {}
set lookingforhead $showlocalchanges
- fconfigure $fd -blocking 0 -translation lf
+ fconfigure $fd -blocking 0 -translation lf -eofchar {}
if {$tclencoding != {}} {
fconfigure $fd -encoding $tclencoding
}