summaryrefslogtreecommitdiffstats
path: root/test/edit.test
blob: 5cc5dba24b717dc0fbecb2de000e68c5588251bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$ rm -rf d
$ mkdir -p d/patches d/subdir
$ cd d

$ cat > editor
< #! /bin/sh
< echo Editing $1
< echo foo > $1
$ chmod +x editor
$ export EDITOR=%PWD/editor

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

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