[darcs-users] Re: newbie question about 'darcs send'

Stephane Bortzmeyer bortzmeyer at nic.fr
Fri Apr 29 12:30:41 UTC 2005


On Fri, Apr 29, 2005 at 02:15:16PM +0200,
 Tommy Pettersson <ptp at lysator.liu.se> wrote 
 a message of 15 lines which said:

> Sorry, missed a very important . in that command:

Great! Almost what I was looking for. For convenience, I wrapped it in
a shell function:

darcsdiff() {
    file=`mktemp`
    darcs changes --to-patch "$1" --context > ${file}
    darcs send --all --context ${file} . 
    rm ${file}
}

The only remaining stuff is to find automatically the patch, as being
the patch of the last "darcs pull" or "darcs push". Any idea?




More information about the darcs-users mailing list