summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
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