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

Method git_mode

atomic-repository/src/repository/project_tree.rs:437–444  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

435 }
436
437 pub fn git_mode(&self) -> u32 {
438 match self.kind {
439 InodeKind::Regular if self.mode & 0o111 != 0 => 0o100755,
440 InodeKind::Regular => 0o100644,
441 InodeKind::Symlink => 0o120000,
442 InodeKind::Gitlink => 0o160000,
443 }
444 }
445}
446
447#[derive(Clone, Debug, PartialEq, Eq)]

Callers 4

compare_index_intoFunction · 0.80
write_directoryFunction · 0.80
comparableFunction · 0.80

Calls

no outgoing calls

Tested by 2

comparableFunction · 0.64