[darcs-devel] Re: darcs patch: save long comment file so it can be reused if record f...

Zachary P. Landau kapheine at gmail.com
Sun Jan 8 10:20:45 PST 2006


On 1/7/06, Tommy Pettersson <ptp at lysator.liu.se> wrote:
> On Sat, Dec 17, 2005 at 05:41:30PM -0500, Zachary P. Landau wrote:
> > Attached.  Currently it always deletes the file after it has been edited.
>
> I tried this patch for a while and I got a lot of empty
> darcs-record-nn files although I didn't try to write a single
> long comment.  I have the habit of interrupting records with
> Ctrl-C, and that seems to leave an empty darcs-record-nn file.
>
> Would it be possible to only create these files when the user
> wants a long comment?

Tommy,

Yes, that is a good idea.  Please try the attached patch.  I tried to
test it as much as possible, but please let me know if anything
breaks.

--
Zachary P. Landau <kapheine at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: only-create-log-file-when-a-long-comment-was-requested.dpatch
Type: application/octet-stream
Size: 12986 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20060108/17988d86/only-create-log-file-when-a-long-comment-was-requested.obj


More information about the darcs-devel mailing list