Just a quick sed script for anybody who likes to do patch review over email. This automatically breaks a patch bundle into sections, with one section per patch. It also cuts away the context of a bundle.
one patch --------- > the contents here > more contents your review a second patch -------------- > more contents more review You use it by telling your text editor to pipe the contents of the current file (i.e. your email reply) to this sed script. In vim, this looks like: map ,dr :%!sed -f ~/custom/darcs-review.sed So when I want to review a patch bundle, I just hit « ,dr » (darcs review) and have things nicely formatted enough. I guess this applies to any project that works be reviewing incoming darcs patch bundles on a maling list. There could be more automation involved, for example, automatically adding whatever tags we would need to talk to a patch tracker. I hope somebody finds this useful anyway -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9
# kill stuff between the patch context and my mail signature
/^> Context:/,/^-- /c\
\
--
# add a section break for each patch
/^> \[/ {
i\
\
s/^> \[//
h
s/./-/g
H
g
}
pgpDK5mvAnMiR.pgp
Description: PGP signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
