diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-02-18 13:00:05 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2015-02-18 13:00:05 +0100 |
commit | 86a58469ae2d2d60d84cb6fb487d2c946158ef67 (patch) | |
tree | a2c664d99ae26973cba3c97fe9b762c5dfb145a1 /test/auto-refresh.test | |
parent | 90459af8fa29670f0e3359c291aec46e34db9ce2 (diff) | |
download | quilt-86a58469ae2d2d60d84cb6fb487d2c946158ef67.tar.gz |
edit: Fix a corner case
There is one corner case which is not properly handled by the "edit"
command. If a patch deletes a file, and the user calls "quilt edit"
on that file but does not actually add anything back to it, "quilt
remove" is called on the file when the editor exits. This causes
the file to be restored to its original state before the patch deleted
it. The user never asked for that, so the file should be left to its
deleted state in this case. The file must only be removed from the
patch if it was not part of the patch originally.
The same problem would occur if the editor deleted the file. In
general text editors don't do that, they'd leave an empty file
instead, but nothing prevents them from actually deleting the file so
we should handle this case properly too.
Diffstat (limited to 'test/auto-refresh.test')
0 files changed, 0 insertions, 0 deletions