diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 00:00:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 00:00:49 -0600 |
| commit | c53da5a9a1da1b29db24d4e1ce2b294514d99ac2 (patch) | |
| tree | c39b33f43d5be87313b3c0aa0c7bb7c58b2f72b6 /shell.go | |
| parent | a115ba144b00dc0339a8cf7eae6bdf2aab5fb4b5 (diff) | |
smarter and faster mtime logic
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -6,7 +6,6 @@ import ( "os" "path/filepath" "strings" - "time" "github.com/go-cmd/cmd" "go.wit.com/lib/gui/shell" @@ -109,13 +108,3 @@ func (repo *Repo) IsDirectory() bool { } return info.IsDir() } - -func (repo *Repo) mtime(filename string) (time.Time, error) { - pathf := filepath.Join(repo.FullPath, filename) - statf, err := os.Stat(pathf) - if err == nil { - return statf.ModTime(), nil - } - log.Log(GITPB, "mtime() os.Stat() error", pathf, err) - return time.Now(), err -} |
