summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 52b8ea9)
raw | patch | inline | side by side (parent: 52b8ea9)
author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Mon, 16 Mar 2009 10:24:40 +0000 (10:24 +0000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Mon, 23 Mar 2009 10:52:57 +0000 (21:52 +1100) |
If a patchset contains an EOF marker (Ctrl-Z) the blob diff terminates
at that point. This permits gitk to ignore the eof and continue to
display any subsequent blobs and also displays a sensible representation
of the eof char.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
at that point. This permits gitk to ignore the eof and continue to
display any subsequent blobs and also displays a sensible representation
of the eof char.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 1773ae63eb54f3b602b782a3633034aab2f828ae..d7de27e75d014926eebe97d88a7b423606247bb1 100755 (executable)
--- a/gitk
+++ b/gitk
set diffnparents 0
set diffinhdr 0
set diffencoding [get_path_encoding {}]
- fconfigure $bdf -blocking 0 -encoding binary
+ fconfigure $bdf -blocking 0 -encoding binary -eofchar {}
set blobdifffd($ids) $bdf
filerun $bdf [list getblobdiffline $bdf $diffids]
}
$ctext insert end "$line\n" filesep
} else {
- set line [encoding convertfrom $diffencoding $line]
+ set line [string map {\x1A ^Z} \
+ [encoding convertfrom $diffencoding $line]]
# parse the prefix - one ' ', '-' or '+' for each parent
set prefix [string range $line 0 [expr {$diffnparents - 1}]]
set tag [expr {$diffnparents > 1? "m": "d"}]