summaryrefslogtreecommitdiffstats
path: root/test/edit.test
blob: 4c4c54271f25817f5b7a7118f52bf8374927c608 (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
$ rm -rf d
$ mkdir -p d/patches d/subdir
$ cd d

$ cat > editor
< #! /bin/sh
< echo Editing $1
< sed -e 's:foo:bar:' $1 > $1.new
< mv $1.new $1
$ chmod +x editor
$ export EDITOR=%PWD/editor

$ quilt new patch
> Patch patches/patch is now on top
$ cd subdir
$ echo foo > foo
$ quilt edit foo
> File subdir/foo added to patch ../patches/patch
> Editing subdir/foo

$ cat foo
> bar

$ cd ../..
$ rm -rf d