diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-03-19 13:47:09 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2015-03-19 13:47:09 +0100 |
commit | fc91b4a5ccc18f4eb522a7eecdc5b85a5f04ce6d (patch) | |
tree | 56cfc9df6ffcc91a6710376585dd0b620e4b2bcb /COPYING | |
parent | 040712b4ef7527396fd453b0e1f031681d308066 (diff) | |
download | quilt-fc91b4a5ccc18f4eb522a7eecdc5b85a5f04ce6d.tar.gz |
Let cat_to_new_file handle the file backup
Let function cat_to_new_file optionally backup the destination file
before overwriting it. This has two advantages:
* This avoids duplicating code on the caller's side. Functions header
and refresh both need to perform a backup.
* This guarantees the consistency of the backup logic. At the moment,
the refresh command would handle the backup of a symlinked file
just fine while the header command would misbehave in that case.
Now that the header command handles symlinked patches properly, also
test it so that we don't break it accidentally later.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions