Skip to content

Commit to buff instead of object database (ODB) before signing #35

@gchronis

Description

@gchronis

Currently, in order to create signed commit, kevlar-laces creates an unsigned commit and stores it in the ODB, then amends it and adds a signature to the header, returning the second commit. This leaves the repo littered with unused objects. To fix this, we want to use the libgit2 function commit_to_buf, which creates the commit without saving it to the object database first, and then use the commit_signed gitrs method to add the signature and write the commit to the ODB.

The bindings for this particular function have not been added to git2rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions