You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

worktree_linux.go 459B

1234567891011121314151617181920212223242526
  1. // +build linux
  2. package git
  3. import (
  4. "syscall"
  5. "time"
  6. "gopkg.in/src-d/go-git.v4/plumbing/format/index"
  7. )
  8. func init() {
  9. fillSystemInfo = func(e *index.Entry, sys interface{}) {
  10. if os, ok := sys.(*syscall.Stat_t); ok {
  11. e.CreatedAt = time.Unix(int64(os.Ctim.Sec), int64(os.Ctim.Nsec))
  12. e.Dev = uint32(os.Dev)
  13. e.Inode = uint32(os.Ino)
  14. e.GID = os.Gid
  15. e.UID = os.Uid
  16. }
  17. }
  18. }
  19. func isSymlinkWindowsNonAdmin(err error) bool {
  20. return false
  21. }