File: header.test

package info (click to toggle)
quilt 0.48-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,244 kB
  • ctags: 193
  • sloc: sh: 5,922; perl: 1,369; lisp: 430; makefile: 388
file content (49 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
	$ rm -rf d
	$ mkdir -p d/patches
	$ cd d

	$ echo foo > foo
	$ quilt new patch
	> Patch patches/patch is now on top

	$ quilt add foo
	> File foo added to patch patches/patch
	
	$ echo bar > foo
	$ quilt refresh
	> Refreshed patch patches/patch

	$ mv patches/patch patches/patch~
	$ echo Header > patches/patch
	$ cat patches/patch~ >> patches/patch
	$ quilt header
	> Header

	$ quilt header -r
	< Header2
	> Replaced header of patch patches/patch
	
	$ quilt header
	> Header2

	$ quilt header -a
	< Appended
	> Appended text to header of patch patches/patch

	$ quilt header
	> Header2
	> Appended

	$ cat patches/patch
	> Header2
	> Appended
	> Index: d/foo
	> ===================================================================
	> --- d.orig/foo
	> +++ d/foo
	> @@ -1 +1 @@
	> -foo
	> +bar

	$ cd ..
	$ rm -rf d