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
()
| 20 | // |
| 21 | // [1]: https://github.com/git/git/blob/v2.54.0/config.mak.uname#L146 |
| 22 | func 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 |
no outgoing calls
searching dependent graphs…