MCPcopy Create free account
hub / github.com/go-git/go-git / init

Function init

worktree_windows.go:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func init() {
14 fillSystemInfo = func(e *index.Entry, sys interface{}) {
15 if os, ok := sys.(*syscall.Win32FileAttributeData); ok {
16 seconds := os.CreationTime.Nanoseconds() / 1000000000
17 nanoseconds := os.CreationTime.Nanoseconds() - seconds*1000000000
18 e.CreatedAt = time.Unix(seconds, nanoseconds)
19 }
20 }
21}
22
23func isSymlinkWindowsNonAdmin(err error) bool {
24 const ERROR_PRIVILEGE_NOT_HELD syscall.Errno = 1314

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected