summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-24 21:30:23 -0500
committerShawn O. Pearce <spearce@spearce.org>2007-01-25 00:25:32 -0500
commit30b14ed390f543e52665c8fc4f626aab78e3dcab (patch)
treee94be76467c04397bd5a4575d8ea9f17bded0d0a /git-commit-script
parenta25c51893317bcbd8e8a85b6da3a573fcd096d86 (diff)
git-gui: Elide CRs appearing in diff output from display.
If we are displaying a diff for a DOS-style (CRLF) formatted file then the Tk text widget would normally show the CR at the end of every line; in most fonts this will come out as a square box. Rather than showing this character we'll tag it with a tag which forces the character to be elided away, so its not displayed. However since the character is still within the text buffer we can still obtain it and supply it over to `git apply` when staging or unstaging an individual hunk, ensuring that the file contents is always fully preserved as-is. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions