Skip to main content

Module git_utils

Module git_utils 

Source
Expand description

Git utilities for version control operations

Provides utilities for interacting with git repositories, including checkpoints, diffs, and log retrieval.

Structs§

GitCommit
Git commit information
GitDiff
Git diff result
GitLogEntry
Git log entry
GitStatus
Git status

Functions§

find_git_root
Find the git root directory by walking up from a path
get_current_branch
Get the current branch name
get_git_root
Get the git root for a given directory
git_ahead_behind
Get the number of commits ahead/behind a remote branch
git_checkpoint
Create a checkpoint commit
git_diff
Get the git diff output
git_file_is_modified
Check if a file has uncommitted changes
git_file_last_modified
Get the last modified date of a file in the repo
git_log
Get the git log
git_restore
Restore a file or path to a specific commit
git_status
Get git status
git_tags_containing
Get the tags that contain a specific commit
is_detached_head
Check if the repository is in detached HEAD state
is_git_repo
Check if a directory is a git repository