summaryrefslogtreecommitdiffstats
path: root/scripts/patchfns.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r--scripts/patchfns.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 2ddf7ac..a715033 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -425,9 +425,10 @@ touched_by_patch()
fix_diff_header()
{
- local from=$1 to=$2
- @SED@ -e 's/^--- [^ '$'\t'']*/--- '"$(quote_bre $from)"'/' \
- -e 's/^+++ [^ '$'\t'']*/+++ '"$(quote_bre $to)"'/'
+ local from=$1 to=$2 z
+ [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] && z='.*'
+ @SED@ -e 's/^--- [^ '$'\t'']*'$z'/--- '"$(quote_bre $from)"'/' \
+ -e 's/^+++ [^ '$'\t'']*'$z'/+++ '"$(quote_bre $to)"'/'
}
diff_file()