File: edit.test

package info (click to toggle)
quilt 0.63-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,868 kB
  • ctags: 153
  • sloc: sh: 5,792; perl: 1,236; lisp: 492; makefile: 431
file content (35 lines) | stat: -rw-r--r-- 551 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
$ mkdir patches subdir

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

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

$ echo foobar > foobar
$ quilt edit foobar
> File foobar added to patch patches/patch
> Editing foobar

$ cd subdir
$ echo foo > foo
$ quilt edit foo
> File subdir/foo added to patch ../patches/patch
> Editing subdir/foo

$ cd ..
$ cat foobar
> barbar

$ cat subdir/foo
> bar

$ quilt files
> foobar
> subdir/foo