git/t/t4135
Jonathan Nieder 2d502e1f37 apply: handle patches with funny filename and colon in timezone
Some patches have a timezone formatted like '-08:00' instead of
'-0800' in their ---/+++ lines (e.g. http://lwn.net/Articles/131729/).
Take this into account when searching for the start of the timezone
(which is the end of the filename).

This does not actually affect the outcome of patching unless (1) a
file being patched has a non-' ' whitespace character (e.g., tab) in
its filename, or (2) the patch is whitespace-damaged, so the tab
between filename and timestamp has been replaced with spaces.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-11-10 08:42:40 -08:00
..
.gitignore tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
add-plain.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
add-with backslash.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
add-with quote.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
add-with spaces.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
add-with tab.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
damaged-tz.diff apply: handle patches with funny filename and colon in timezone 2010-11-10 08:42:40 -08:00
damaged.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
diff-plain.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
diff-with backslash.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
diff-with quote.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
diff-with spaces.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
diff-with tab.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
funny-tz.diff apply: handle patches with funny filename and colon in timezone 2010-11-10 08:42:40 -08:00
git-plain.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
git-with backslash.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
git-with quote.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
git-with spaces.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
git-with tab.diff tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00
make-patches tests: exercise "git apply" with weird filenames 2010-08-21 23:04:25 -07:00