Commit f31fa2c
committed
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>1 parent 80dd7b4 commit f31fa2c
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4992 | 4992 | | |
4993 | 4993 | | |
4994 | 4994 | | |
4995 | | - | |
4996 | 4995 | | |
4997 | 4996 | | |
4998 | | - | |
4999 | 4997 | | |
| 4998 | + | |
| 4999 | + | |
| 5000 | + | |
5000 | 5001 | | |
5001 | 5002 | | |
5002 | 5003 | | |
| |||
0 commit comments