Skip to main content

get_commit_summary

Function get_commit_summary 

Source
pub fn get_commit_summary(path: impl AsRef<Path>) -> Result<String, GitOpsError>
Expand description

Get a short summary of the HEAD commit.

Returns a string like “abc1234: commit message subject”

§Arguments

  • path - Path to the git repository (or worktree)