Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

git: enables building on OpenBSD, Dragonfly BSD and Solaris #992

Merged
merged 1 commit into from
Oct 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion worktree_bsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build darwin freebsd netbsd openbsd
// +build darwin freebsd netbsd

package git

Expand Down
26 changes: 26 additions & 0 deletions worktree_unix_other.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// +build openbsd dragonfly solaris

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.Atim.Sec), int64(os.Atim.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
}