Module git_lock

Module git_lock 

Source
Expand description

Git lock utilities for detecting and cleaning stale locks

Functionsยง

clean_stale_index_lock
Detect and remove stale Git index lock if safe to do so Returns true if a stale lock was removed
is_lock_error
Check if an error is a Git lock error
with_lock_retry
Execute a git2 operation with automatic stale lock cleanup and retry If the operation fails with a lock error, checks for stale locks and retries once