summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-22 15:29:22 -0600
committerJeff Carr <[email protected]>2024-02-22 15:29:22 -0600
commitcd5f1d9d0f52196d6ea07684a4307369893911bd (patch)
tree7338ba80799ad96b25eae2fa55bcbca211c48fc7 /new.go
parent5aaf02ee3aeafc17a70ddc32619a17ae19a6f1ed (diff)
add NewestTag() and Tag.Age()
Diffstat (limited to 'new.go')
-rw-r--r--new.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/new.go b/new.go
index ce05dfd..c333e24 100644
--- a/new.go
+++ b/new.go
@@ -32,6 +32,14 @@ func FindPathOld(path string) *RepoStatus {
return windowMap[path]
}
+// makes a window of the status of the repo
+// don't worry, you can think of it like Sierpinski carpet
+// it's doesn't need to be displayed so it'll work fine even in an embedded space
+func New(path string) (*RepoStatus, error) {
+ err, r := NewRepoStatusWindow(path)
+ return r, err
+}
+
func NewRepoStatusWindow(path string) (error, *RepoStatus) {
var realpath string
var isGoLang bool = false