aboutsummaryrefslogtreecommitdiffstats
path: root/worktree_linux.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-26 16:25:29 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-04-26 16:25:29 +0200
commit9e8f1cfde0e4fd6e4893ca53dea3145fe0182800 (patch)
tree810cff49f55719b84fe72f1433696e0dc4a2881b /worktree_linux.go
parentd32489902e86c6b667bbc4d28558ebd40a80cf4a (diff)
downloadgo-git-9e8f1cfde0e4fd6e4893ca53dea3145fe0182800.tar.gz
worktree: add method
Diffstat (limited to 'worktree_linux.go')
-rw-r--r--worktree_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/worktree_linux.go b/worktree_linux.go
index a33cd2f..7209d7d 100644
--- a/worktree_linux.go
+++ b/worktree_linux.go
@@ -12,6 +12,7 @@ import (
func init() {
fillSystemInfo = func(e *index.Entry, sys interface{}) {
if os, ok := sys.(*syscall.Stat_t); ok {
+
e.CreatedAt = time.Unix(int64(os.Ctim.Sec), int64(os.Ctim.Nsec))
e.Dev = uint32(os.Dev)
e.Inode = uint32(os.Ino)