blob: d59448ef87f82b89d1bcffee0a250edac1591a8e (
plain) (
tree)
|
|
// +build windows
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.Win32FileAttributeData); ok {
seconds := os.CreationTime.Nanoseconds() / 1000000000
nanoseconds := os.CreationTime.Nanoseconds() - seconds*1000000000
e.CreatedAt = time.Unix(seconds, nanoseconds)
}
}
}
|