Skip to main content

Module git

Module git 

Source
Expand description

Git operations for Humanize.

This module provides git command wrappers for branch detection, commit SHA retrieval, and repository status checks.

Structs§

GitInfo
Git repository information.
GitStatus
Parse git status output to get file counts.

Enums§

GitError
Errors that can occur during git operations.

Functions§

get_ahead_count
Get the number of commits ahead of upstream.
get_current_branch
Get the current branch name.
get_git_info
Get git repository information.
get_git_status
Get git status file counts.
get_head_sha
Get the HEAD commit SHA.
get_head_sha_short
Get the short HEAD commit SHA (7 characters).
is_ancestor
Check if one commit is an ancestor of another.
is_working_tree_clean
Check if the working tree is clean (no uncommitted changes).