Skip to contentSkip to conversation

(no subject)

PATCH Mark Levedahl 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

From 567906ddb2fbbcf07325acc2808346ad6a472df1 Mon Sep 17 00:00:00 2001
From: Mark Levedahl <[email protected]>
Date: Tue, 17 Jul 2007 18:35:46 -0400
Subject: [PATCH] gitk - Ignore ctrl-z as EOF on windows
To: [email protected]
-=-=-=-=-=-=-=-=-=# Don't remove this line #=-=-=-=-=-=-=-=-=- 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.

---
gitk | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
gitk +1 -1
index 39e452a..238607e 100755
@@ -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
    }

--
1.5.3.rc2.5.g66bbd