blob: b2588b52a1bdd7004dad6bbdf49876ac76db5f78 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
$ mkdir d
$ cd d
$ quilt new sort.diff
> Patch patches/sort.diff is now on top
$ quilt add b f
> File b added to patch patches/sort.diff
> File f added to patch patches/sort.diff
$ echo b > b
$ echo f > f
$ quilt refresh
> Refreshed patch patches/sort.diff
$ quilt add c
> File c added to patch patches/sort.diff
$ echo c > c
$ quilt refresh
> Refreshed patch patches/sort.diff
$ quilt files
> b
> f
> c
$ quilt add z x
> File z added to patch patches/sort.diff
> File x added to patch patches/sort.diff
$ echo z > z
$ echo x > x
$ quilt files
> b
> f
> c
> x
> z
$ quilt add a
> File a added to patch patches/sort.diff
$ echo a > a
$ quilt files
> b
> f
> c
> a
> x
> z
$ quilt diff | grep ^Index
> Index: d/b
> Index: d/f
> Index: d/c
> Index: d/a
> Index: d/x
> Index: d/z
$ quilt refresh
> Refreshed patch patches/sort.diff
$ grep ^Index patches/sort.diff
> Index: d/b
> Index: d/f
> Index: d/c
> Index: d/a
> Index: d/x
> Index: d/z
$ quilt diff --sort | grep ^Index
> Index: d/a
> Index: d/b
> Index: d/c
> Index: d/f
> Index: d/x
> Index: d/z
$ quilt refresh --sort
> Refreshed patch patches/sort.diff
$ grep ^Index patches/sort.diff
> Index: d/a
> Index: d/b
> Index: d/c
> Index: d/f
> Index: d/x
> Index: d/z
$ cd ..
$ rm -rf d
|