fork of go-git with some jj specific features
at v5.6.1 437 B view raw
1// +build linux 2 3package git 4 5import ( 6 "syscall" 7 "time" 8 9 "github.com/go-git/go-git/v5/plumbing/format/index" 10) 11 12func init() { 13 fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 if os, ok := sys.(*syscall.Stat_t); ok { 15 e.CreatedAt = time.Unix(os.Ctim.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 24func isSymlinkWindowsNonAdmin(err error) bool { 25 return false 26}