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

Function init

worktree_plan9.go:10–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func init() {
11 fillSystemInfo = func(e *index.Entry, sys interface{}) {
12 if os, ok := sys.(*syscall.Dir); ok {
13 // Plan 9 doesn't have a CreatedAt field.
14 e.CreatedAt = time.Unix(int64(os.Mtime), 0)
15
16 e.Dev = uint32(os.Dev)
17
18 // Plan 9 has no Inode.
19 // ext2srv(4) appears to store Inode in Qid.Path.
20 e.Inode = uint32(os.Qid.Path)
21
22 // Plan 9 has string UID/GID
23 e.GID = 0
24 e.UID = 0
25 }
26 }
27}
28
29func isSymlinkWindowsNonAdmin(err error) bool {
30 return true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected