Skip to main content

enable_commit_trailers

Function enable_commit_trailers 

Source
pub fn enable_commit_trailers(
    auths_home: &Path,
    root_did: &str,
    device_did: &str,
    git_config: &dyn GitConfigProvider,
) -> Result<(), CommitHookError>
Expand description

Full commit-trailer wiring: install the hook + data files and point core.hooksPath at the managed hooks directory.

After this, a plain git commit produces a commit auths verify can replay — no extra commands, no per-repo setup.

Args:

  • auths_home: The auths data directory.
  • root_did: The local identity’s root did:keri:.
  • device_did: This device’s DID.
  • git_config: Git configuration provider (global or local scope).

Usage:

enable_commit_trailers(&auths_home, &root_did, &device_did, git_config)?;