diff options
author | wardn <wardn@users.noreply.github.com> | 2018-04-10 14:08:25 -0700 |
---|---|---|
committer | wardn <wardn@users.noreply.github.com> | 2018-04-10 14:17:06 -0700 |
commit | 83381056f5e9736dd66d07a1d15d495f89d9a34c (patch) | |
tree | 04eae093ccfaba4383dc2908b09f23366962c53e /worktree_darwin.go | |
parent | c4ace4d53535d00899503bfaedc6e9709e3aff0a (diff) | |
download | go-git-83381056f5e9736dd66d07a1d15d495f89d9a34c.tar.gz |
use bsd superset for conditional compilation
Signed-off-by: wardn <wardn@users.noreply.github.com>
Diffstat (limited to 'worktree_darwin.go')
-rw-r--r-- | worktree_darwin.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/worktree_darwin.go b/worktree_darwin.go deleted file mode 100644 index 3b374c7..0000000 --- a/worktree_darwin.go +++ /dev/null @@ -1,26 +0,0 @@ -// +build darwin freebsd netbsd openbsd - -package git - -import ( - "syscall" - "time" - - "gopkg.in/src-d/go-git.v4/plumbing/format/index" -) - -func init() { - fillSystemInfo = func(e *index.Entry, sys interface{}) { - if os, ok := sys.(*syscall.Stat_t); ok { - e.CreatedAt = time.Unix(int64(os.Atimespec.Sec), int64(os.Atimespec.Nsec)) - e.Dev = uint32(os.Dev) - e.Inode = uint32(os.Ino) - e.GID = os.Gid - e.UID = os.Uid - } - } -} - -func isSymlinkWindowsNonAdmin(err error) bool { - return false -} |