From: Mark Levedahl Date: Tue, 17 Jul 2007 22:42:04 +0000 (-0400) Subject: [PATCH] gitk: Ignore ctrl-z as EOF on windows X-Git-Tag: v1.5.3-rc4~54^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=86da5b6c978be1e64ec42c8b08e815a83f02493e;p=git.git [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 Signed-off-by: Paul Mackerras --- diff --git a/gitk b/gitk index 995833fa5..d6f62b2a0 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 }