summaryrefslogtreecommitdiffstats
path: root/test/missing-newline.test
blob: 0b7abe7776d35b04dfdc441f88bcd7abdcbdd0c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ mkdir patches

$ echo foo > foo
$ quilt new 1.patch
> Patch %{P}1.patch is now on top

$ quilt add foo
> File foo added to patch %{P}1.patch

$ echo bar > foo
$ quilt refresh -p ab
> Refreshed patch %{P}1.patch

# Sabotage the series file
$ echo -n 1.patch > patches/series

# quilt should insert the missing newline before appending
$ quilt new 2.patch
> Patch %{P}2.patch is now on top
$ cat patches/series
> 1.patch
> 2.patch