diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2005-11-28 00:46:13 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2005-11-28 00:46:13 +0000 |
commit | 53819365cf8b1dad870cf97a1f33bd7579f6b6ed (patch) | |
tree | a3737a06f43257905c91cb4ec3cc3635953e83f8 /test | |
parent | 95ba9d63e774ecfcdd553ce8a5c31e451e075408 (diff) | |
download | quilt-53819365cf8b1dad870cf97a1f33bd7579f6b6ed.tar.gz |
- quilt/diff.in, quilt/refresh.in: stop using /dev/null for added
or removed files: GNU diff does not do that either, and for
removed files this leads to headers that only reference
$file.orig and /dev/null, so the actual file is not found. (This
is only truly fixes -p0 style patches as -p1 style patches use
dir.orig/file instead of dir/file.orig so the filename is not
lost, but stopping to use /dev/null makes sense for -p style
patches just the same.
- files command: remove a redundant find_patch().
- Make top_patch() fail if there is no top patch.
Diffstat (limited to 'test')
-rw-r--r-- | test/null-bug.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/null-bug.test b/test/null-bug.test new file mode 100644 index 0000000..324690a --- /dev/null +++ b/test/null-bug.test @@ -0,0 +1,24 @@ + $ mkdir d + $ cd d + + $ echo file > file + $ quilt new remove.diff + > Patch patches/remove.diff is now on top + + $ quilt add file + > File file added to patch patches/remove.diff + + $ rm file + $ quilt ref -p0 + > Refreshed patch patches/remove.diff + + $ quilt pop -q + > Removing patch patches/remove.diff + > No patches applied + + $ quilt push -q + > Applying patch patches/remove.diff + > Now at patch patches/remove.diff + + $ cd .. + $ rm -r d |