mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
switch to fork of go-git
This commit is contained in:
31
vendor/github.com/jesseduffield/go-git/v5/worktree_plan9.go
generated
vendored
Normal file
31
vendor/github.com/jesseduffield/go-git/v5/worktree_plan9.go
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
package git
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/jesseduffield/go-git/v5/plumbing/format/index"
|
||||
)
|
||||
|
||||
func init() {
|
||||
fillSystemInfo = func(e *index.Entry, sys interface{}) {
|
||||
if os, ok := sys.(*syscall.Dir); ok {
|
||||
// Plan 9 doesn't have a CreatedAt field.
|
||||
e.CreatedAt = time.Unix(int64(os.Mtime), 0)
|
||||
|
||||
e.Dev = uint32(os.Dev)
|
||||
|
||||
// Plan 9 has no Inode.
|
||||
// ext2srv(4) appears to store Inode in Qid.Path.
|
||||
e.Inode = uint32(os.Qid.Path)
|
||||
|
||||
// Plan 9 has string UID/GID
|
||||
e.GID = 0
|
||||
e.UID = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func isSymlinkWindowsNonAdmin(err error) bool {
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user