MCPcopy
hub / github.com/go-git/go-git / defaultProtectHFS

Function defaultProtectHFS

worktree_fs.go:22–24  ·  view source on GitHub ↗

defaultProtectHFS returns the default value for core.protectHFS when not explicitly configured. Matches upstream Git's PROTECT_HFS_DEFAULT[1], which the Makefile sets to 1 on Darwin and leaves at 0 on every other platform. [1]: https://github.com/git/git/blob/v2.54.0/config.mak.uname#L146

()

Source from the content-addressed store, hash-verified

20//
21// [1]: https://github.com/git/git/blob/v2.54.0/config.mak.uname#L146
22func defaultProtectHFS() bool {
23 return runtime.GOOS == "darwin"
24}
25
26// defaultProtectNTFS returns the default value for core.protectNTFS
27// when not explicitly configured. Matches upstream Git's

Callers 2

WorktreeMethod · 0.85
TestValidPathFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidPathFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…