3 New p command 'recommit'
6 will apply and commit a series of removed patches.
8 ----------- Diffstat output ------------
9 ./p | 27 +++++++++++++++++++++++++++
11 2 files changed, 35 insertions(+)
14 --- ./p~current~ 2004-02-03 13:01:18.000000000 +1100
15 +++ ./p 2004-02-03 13:18:44.000000000 +1100
16 @@ -596,6 +596,33 @@ case $cmd in
18 while p open last && p discard ; do : ; done
23 + if [ -s .patches/patch ]
25 + echo >&2 Patch $name already open - please commit ; exit 1;
29 + echo "Unapplied patches are:"
34 + then echo >&2 "Usage: p recommit patchname"; exit 1
37 + last ) pfile=`ls -d .patches/removed/[0-9]* | tail -1` ; echo last is "$pfile";;
39 + * ) pfile=`echo .patches/removed/*$1*`
41 + if [ ! -f "$pfile" ]
42 + then echo >&2 "Cannot find unique patch '$1' - found: $pfile"; exit 1
44 + while [ -s "$pfile" ] &&
45 + p apply last && p commit ; do : ; done
51 diff ./p.help~current~ ./p.help
52 --- ./p.help~current~ 2004-02-03 13:01:18.000000000 +1100
53 +++ ./p.help 2004-02-03 13:18:44.000000000 +1100
54 @@ -248,6 +248,14 @@ openall
55 discarded. This is part of the preparation for incorporating
59 + Usage: p recommit patchname
61 + This command will re-apply and re-commit removed patches
62 + that successfully apply until the names patch has been applied.
63 + Patches are applied in reverse order, which is consistant with
64 + the order in which they were removed.