fn has_shallow_lock_file(err: &Error) -> bool
Expand description
gitoxide
uses shallow locks to assure consistency when fetching to and to avoid races, and to write
files atomically.
Cargo has its own lock files and doesn’t need that mechanism for race protection, so a stray lock means
a signal interrupted a previous shallow fetch and doesn’t mean a race is happening.