author | Paul Mackerras <paulus@samba.org> | |
Sun, 27 Apr 2008 23:40:50 +0000 (09:40 +1000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 27 Apr 2008 23:40:50 +0000 (09:40 +1000) | ||
commit | f31fa2c0864ba8b1292119fbb3942cdbaa0fb807 | |
tree | 1d447c29349eace01e3e81b4ff745da4dd8517be | tree | snapshot |
parent | 80dd7b44970dee7d82fa735d2e0b828051f80545 | commit | diff |
gitk: Fix handling of tree file list with special chars in names
Alex Riesen pointed out that displaying a commit in 'tree' mode fails
if some files have names with special characters such as '{' or '}' in
them, due to the fact that we treat the line returned from git ls-tree
as a Tcl list at one point.
This fixes it by doing what I originally intended but didn't quite
get right. We split the line from git ls-tree at the first tab and
treat the part before the tab as a list (which is OK since it doesn't
have special characters in it) and the part after the tab as the
filename.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Alex Riesen pointed out that displaying a commit in 'tree' mode fails
if some files have names with special characters such as '{' or '}' in
them, due to the fact that we treat the line returned from git ls-tree
as a Tcl list at one point.
This fixes it by doing what I originally intended but didn't quite
get right. We split the line from git ls-tree at the first tab and
treat the part before the tab as a list (which is OK since it doesn't
have special characters in it) and the part after the tab as the
filename.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |