[darcs-devel] darcs patch: Add -O option to Send to write patches
to autogenerate...
Zachary P. Landau
kapheine at divineinvasion.net
Mon Feb 12 07:57:35 PST 2007
On Mon, Feb 12, 2007 at 04:46:45PM +0100, Juliusz Chroboczek wrote:
> > Instead of 'darcs send -o somefile.dpatch' you would use 'darcs send -O'
> > and it would generate the filename for you, based on the name of the
> > first patch in the bundle.
>
> I see. Please make sure it's scriptable -- i.e. that it's easy to
> programmatically find out the name from Darcs' output.
Darcs will print 'Wrote patch to somefilename.dpatch.' Also, if one
were so inclined they could have their script figure out the name by
using the same transformation that is in FileName.lhs:patch_filename.
By the way, I just noticed that FileName.lhs is a pretty bad place for
that code. I must not have noticed the description of the FileName
module when I put it there. It should probably be moved, although I'm
not sure where yet. I'll take a look at that later.
--
Zachary P. Landau <kapheine at divineinvasion.net>
GPG: gpg --recv-key 0xC9F82052 | http://divineinvasion.net/kapheine.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070212/4ed9bc52/attachment.pgp
More information about the darcs-devel
mailing list