fork of go-git with some jj specific features
at main 575 B view raw
1package git 2 3import ( 4 "syscall" 5 "time" 6 7 "github.com/go-git/go-git/v5/plumbing/format/index" 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 31}