本站源代码
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.

27 lines
479B

  1. // +build openbsd dragonfly solaris
  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.Atim.Sec), int64(os.Atim.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. }
上海开阖软件有限公司 沪ICP备12045867号-1