[darcs-users] Origin of sha1 hash value

Travis Cross travis at crosswirecorp.com
Sun Feb 26 19:58:06 UTC 2006


I'll reply to my own thread here...

Travis Cross wrote:
> Maybe there is even a better, cleaner way of changing patch names
> and logs?

I figured out how to do this cleanly:

$ darcs send -a -o ../clean-repos/patches ../clean-repos
$ cd ../clean-repos/
$ emacs patches
# clean things up ; remove the 'Patch bundle hash' block
$ darcs apply patches

This may all have been obvious to everyone who has used darcs for 
some time.  In any case, it solved the challenge at hand.

All the same, I am still curious about the patch format.  How is the 
hash generated, and what is the middle value in the patch file name 
(i.e. date-?-hash.gz)?

Cheers,

-- Travis





More information about the darcs-users mailing list