pub fn git_get_commits_since(
repo_root: &Path,
tag: Option<&str>,
) -> Result<Vec<String>, GitError>Expand description
Retrieves all commit messages since the given tag (or all commits up to HEAD if tag is None).
Executes git log <tag>..HEAD --format=%B%x1e or git log HEAD --format=%B%x1e.
Splits the output on ASCII 0x1E records, trims whitespace, and filters empty entries.
§Arguments
repo_root- Path to the repository root directory.tag- Optional starting tag reference.
§Example
use std::path::Path;
use git_claw::infra::git::git_get_commits_since;
let commits = git_get_commits_since(Path::new("."), Some("v1.0.0"))?;
for c in commits {
println!("Commit: {}", c);
}