Skip to main content

Module git

Module git 

Source
Expand description

Git integration for safety checks

Provides functionality to detect uncommitted changes and protect users from accidentally deleting unsaved work.

Structs§

ProtectionResult
Result of a protection check

Enums§

ProtectionLevel
Protection level for cleaning operations

Functions§

check_artifact_protection
Check if a specific artifact is safe to clean
check_project_protection
Check if it’s safe to clean a project
enrich_with_git_status
Add git status to all projects in a list
find_repo_root
Find the git repository root for a path
get_git_status
Check git status for a project directory
has_uncommitted_changes
Quick check if a path has uncommitted changes
is_git_tracked
Check if a specific file/directory is tracked by git