summaryrefslogtreecommitdiffstats
path: root/test/null-bug.test
blob: b8ad46e62534a2daf6e84f230054302082b0e3bb (plain) (blame)
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
	$ 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

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 file
	$ quilt diff -p0
	> Index: file
	> ===================================================================
	> --- file
	> +++ /dev/null
	> @@ -1 +0,0 @@
	> -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