Module git

Module git 

Source
Expand description

Utility module for running Git commands.

This module provides helpers for interacting with a Git repository, primarily to extract metadata (commit hash, tag, timestamp, branch).

All functions return mdbook::errors::Error on failure so they can be integrated directly into the mdbook preprocessor error flow.

See also:

Functions§

get_git_output
Run a Git command and return the trimmed stdout output as a String.
verify_branch
Verify that a branch exists locally in the given repository.