fork of go-git with some jj specific features

Worktree: use syscall.Timespec.Unix #437

Use the syscall method instead of repeating the type conversions for
the syscall.Stat_t Atim/Atimespec/Ctim members.

authored by Tobias Klauser and committed by GitHub 4f916225 c785af3f

+1 -1
worktree_bsd.go
··· 12 12 func init() { 13 13 fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 14 if os, ok := sys.(*syscall.Stat_t); ok { 15 - e.CreatedAt = time.Unix(int64(os.Atimespec.Sec), int64(os.Atimespec.Nsec)) 15 + e.CreatedAt = time.Unix(os.Atimespec.Unix()) 16 16 e.Dev = uint32(os.Dev) 17 17 e.Inode = uint32(os.Ino) 18 18 e.GID = os.Gid
+1 -1
worktree_linux.go
··· 12 12 func init() { 13 13 fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 14 if os, ok := sys.(*syscall.Stat_t); ok { 15 - e.CreatedAt = time.Unix(int64(os.Ctim.Sec), int64(os.Ctim.Nsec)) 15 + e.CreatedAt = time.Unix(os.Ctim.Unix()) 16 16 e.Dev = uint32(os.Dev) 17 17 e.Inode = uint32(os.Ino) 18 18 e.GID = os.Gid
+1 -1
worktree_unix_other.go
··· 12 12 func init() { 13 13 fillSystemInfo = func(e *index.Entry, sys interface{}) { 14 14 if os, ok := sys.(*syscall.Stat_t); ok { 15 - e.CreatedAt = time.Unix(int64(os.Atim.Sec), int64(os.Atim.Nsec)) 15 + e.CreatedAt = time.Unix(os.Atim.Unix()) 16 16 e.Dev = uint32(os.Dev) 17 17 e.Inode = uint32(os.Ino) 18 18 e.GID = os.Gid