[Patch git-remote-gcrypt] support commit history in commit message

Tobias Birchler tobias at birchlerfamily.ch
Thu Sep 15 15:40:49 BST 2022


Hi!

We implemented an additional feature for git-remote-gcrypt. The attached
patch adds the (optional) functionality of maintaining a commit history in
the commit message.

The history consists of a linked list of the commits to the encrypted
repository including the list of participants after that commit. Format of
the history:
pointer:<id_last> <id_pub_key1> ... <id_pub_keyn>
<timestamp> <user> commit:<id_last> pointer:<id_last-1> <id_pub_key1> ...
<id_pub_keyn>
<timestamp> <user> commit:<id_last-1> pointer:<id_last-2> <id_pub_key1> ...
<id_pub_keyn>
...
<timestamp> <user> commit:<id_first+1> pointer:2217d28 <id_pub_key1> ...
<id_pub_keyn>
2012-12-31 19:00:01 -0400 root commit:2217d28

The patch also includes a bats test suite.
The test suite is focused on the added functionality.

Furthermore it adds information to the README about the additional
functionality
and other things that were unclear to us.

Regards,
Tobias Birchler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.chiark.greenend.org.uk/pipermail/sgo-software-discuss/attachments/20220915/0ba418b5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-support-commit-history-in-commit-message.patch
Type: text/x-patch
Size: 59306 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/sgo-software-discuss/attachments/20220915/0ba418b5/attachment-0001.bin>


More information about the sgo-software-discuss mailing list