author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 8 Feb 2007 22:13:51 +0000 (17:13 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 8 Feb 2007 22:13:51 +0000 (17:13 -0500) | ||
commit | 42b922fcf6f3bd16c4579f2b9e1e52c79096eba2 | |
tree | a5c4f7e47377f1a606dcefd6b157e004df95af79 | tree | snapshot |
parent | 9bccb782c35b864988e51d433271faba2ac3e96f | commit | diff |
git-gui: Replace \ with \\ when showing paths.
We already replace \n with \\n so that Tk widgets don't start a new
display line with part of a file path which is just unlucky enough
to contain an LF. But then its confusing to read a path whose name
actually contains \n as literal characters. Escaping \ to \\ would
make that case display as \\n, clarifying the output.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
We already replace \n with \\n so that Tk widgets don't start a new
display line with part of a file path which is just unlucky enough
to contain an LF. But then its confusing to read a path whose name
actually contains \n as literal characters. Escaping \ to \\ would
make that case display as \\n, clarifying the output.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |