MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / canonical_git_mode

Function canonical_git_mode

atomic-cli/src/commands/git/parallel.rs:9443–9452  ·  view source on GitHub ↗
(mode: git2::FileMode)

Source from the content-addressed store, hash-verified

9441}
9442
9443fn canonical_git_mode(mode: git2::FileMode) -> u32 {
9444 match mode {
9445 git2::FileMode::Tree => 0o040000,
9446 git2::FileMode::Blob | git2::FileMode::BlobGroupWritable => 0o100644,
9447 git2::FileMode::BlobExecutable => 0o100755,
9448 git2::FileMode::Link => 0o120000,
9449 git2::FileMode::Commit => 0o160000,
9450 git2::FileMode::Unreadable => 0,
9451 }
9452}
9453
9454fn operation_is_delete(status: git2::Delta) -> bool {
9455 status == Delta::Deleted

Callers 1

parse_diff_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected