diff options
author | Fredrik Kuivinen <freku045@student.liu.se> | 2005-09-04 19:29:02 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-04 11:00:28 -0700 |
commit | 433ef8a2fb93627e311217b2a41b3132933e6b0b (patch) | |
tree | 9575a97e48350f63844a67dad36681b57f69fb0f /t/t4001-diff-rename.sh | |
parent | git-applymbox: fix '-c'. (diff) | |
download | tgif-433ef8a2fb93627e311217b2a41b3132933e6b0b.tar.xz |
[PATCH] Make git-apply understand incomplete lines in non-C locales
The message "\ No newline at end of file" used by diff(1) to mark
an incomplete line is locale dependent. We can't assume more than
that it begins with "\ ".
For example, given two files, "foo" and "bar", with appropriate
contents, 'diff -u foo bar' will produce the following output on
my system:
--- foo 2005-09-04 18:59:38.000000000 +0200
+++ bar 2005-09-04 18:59:16.000000000 +0200
@@ -1 +1 @@
-foobar
+foo
\ Ingen nyrad vid filslut
[jc: the check for the marker still uses the line length being no less
than 12 bytes for a sanity check, but I think it is safe to assume
that in other locales. I haven't checked the .po files from diff, tho'.]
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t4001-diff-rename.sh')
0 files changed, 0 insertions, 0 deletions