Debian Codegraph @

worktree_unix_other.go

raw
1 // +build openbsd dragonfly solaris
2
3 package git
4
5 import (
6 "syscall"
7 "time"
8
9 "github.com/go-git/go-git/v5/plumbing/format/index"
10 )
11
12 func init() {
13 fillSystemInfo = func(e *index.Entry, sys interface{}) {
14 if os, ok := sys.(*syscall.Stat_t); ok {
15 e.CreatedAt = time.Unix(os.Atim.Unix())
16 e.Dev = uint32(os.Dev)
17 e.Inode = uint32(os.Ino)
18 e.GID = os.Gid
19 e.UID = os.Uid
20 }
21 }
22 }
23
24 func isSymlinkWindowsNonAdmin(err error) bool {
25 return false
26 }