git-gui: Correctly handle files containing LF in their name.
commit68e009dec44a023efd6f6fcd61c1583b23b04f32
authorShawn O. Pearce <spearce@spearce.org>
Sat, 11 Nov 2006 22:59:34 +0000 (11 17:59 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 12 Nov 2006 05:16:01 +0000 (12 00:16 -0500)
tree1d83ab895536c1ad1a94f1d882dbf106cb6b33dc
parent03e4ec5364f955f5e1af0775166c679ed60f7fb4
git-gui: Correctly handle files containing LF in their name.

If we are given a file whose path name contains an LF (\n) we now
escape it by inserting the common escape string \n instead of the
LF character whenever we display the name in the UI.  This way the
text fields don't start to span multiple lines just to display one
file, and it keeps the line numbers correct within the file lists.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui