diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2004-07-02 01:14:07 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2004-07-02 01:14:07 +0000 |
commit | 00227c3952cd1618d0bd6a6a2231046b3153c14e (patch) | |
tree | 3e59ec140eca2924e8b2574de83f100a2940109d /scripts | |
parent | 162d238c1d40b6e6eace4396f9ac7cf91685fa30 (diff) | |
download | quilt-00227c3952cd1618d0bd6a6a2231046b3153c14e.tar.gz |
- Several Fixes from Joe Green <jgreen@mvista.com>:
+ Another sed \t\r problem, in Makefile.in
+ Bad error message on "quilt delete" of non-existent patch
+ "import" doesn't remove all leading components on patch file
+ Misspelling in "import" help text
- With using the GNU diff --label option, file timestamps
disappeared. Specify the timestamps in --label by hand: This
gives us added flexibility when generating patches; we may
some day want to support diff styles other than unified.
Also reported by Joe Green.
- Add --backup option to quilt refresh.
- Update documentation to QUILT_${COMMAND}_ARGS in .quiltrc.
(The old settings still work but they are no longer documented.)
- Update German translation.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/patchfns.in | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in index 8a0a3cc..3acb92b 100644 --- a/scripts/patchfns.in +++ b/scripts/patchfns.in @@ -494,21 +494,10 @@ touched_by_patch() }' } -fix_diff_header() -{ - local from=$1 to=$2 z - if [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] - then - sed -e 's:^\(\(---\|+++\) .*\)\t.*:\1:' - else - cat - fi -} - diff_file() { local file=$1 old_file=$2 new_file=$3 - local index old_hdr new_hdr line + local index old_hdr old_date new_hdr new_date line : ${opt_strip_level:=1} if [ $opt_strip_level -eq 0 ] @@ -526,21 +515,33 @@ diff_file() then old_file=/dev/null old_hdr=/dev/null + [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ + || old_date=$'\t'"1970-01-01 00:00:00.000000000 +0000" + else + [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ + || old_date=$'\t'$(date +'%Y-%m-%d %H:%M:%S.%N %z' \ + -r "$old_file") fi if ! [ -s "$new_file" ] then new_file=/dev/null new_hdr=/dev/null + [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ + || new_date="1970-01-01 00:00:00.000000000 +0000" + else + [ -n "$QUILT_NO_DIFF_TIMESTAMPS" ] \ + || new_date=$'\t'$(date +'%Y-%m-%d %H:%M:%S.%N %z' \ + -r "$new_file") fi @DIFF@ -Nu $QUILT_DIFF_OPTS $old_file $new_file \ - --label "$old_hdr" --label "$new_hdr" \ + --label "$old_hdr$old_date" --label "$new_hdr$new_date" \ | if read line then echo "Index: $index" echo "===================================================================" - (echo "$line" ; cat) \ - | fix_diff_header + echo "$line" + cat fi } |