[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>
Mark Levedahl committed
Jul 17, 2007 at 18:42 UTC
86da5b6c978be1e64ec42c8b08e815a83f02493e
1 file changed
+1
-1
gitk
+1
-1
@@ -101,7 +101,7 @@ proc start_rev_list {view} {
101
set commfd($view) $fd
102
set leftover($view) {}
103
set lookingforhead $showlocalchanges
104
- fconfigure $fd -blocking 0 -translation lf
104
+ fconfigure $fd -blocking 0 -translation lf -eofchar {}
105
if {$tclencoding != {}} {
106
fconfigure $fd -encoding $tclencoding
107
}