1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
$ rm -rf d
$ mkdir -p d/patches
$ 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
In this case, the original file in the --- line must not have .orig appended
or else patch won't know the real original filename anymore.
$ rm -f file
$ quilt diff -p0
> Index: file
> ===================================================================
> --- file
> +++ /dev/null
> @@ -1 +0,0 @@
> -file
$ quilt refresh -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
|