summaryrefslogtreecommitdiff
path: root/doAdd.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 22:00:12 -0500
committerJeff Carr <[email protected]>2025-10-14 22:00:12 -0500
commit90c62819d72fbd7fd68b7caed2ed60050ea4b71e (patch)
tree3173ae48aaa998be46ca14def9a7accdfb2744ca /doAdd.go
parent3c6e0574f9a984a3ab35ff7a27ad35ff7c3e9edc (diff)
make a doStats()
Diffstat (limited to 'doAdd.go')
-rw-r--r--doAdd.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/doAdd.go b/doAdd.go
index 49b4db6..7267eb5 100644
--- a/doAdd.go
+++ b/doAdd.go
@@ -11,6 +11,16 @@ import (
"go.wit.com/log"
)
+func workingDirToRepo() *gitpb.Repo {
+ wd, _ := os.Getwd()
+ for repo := range me.forge.Repos.IterAll() {
+ if strings.HasPrefix(repo.FullPath, wd) {
+ return repo
+ }
+ }
+ return nil
+}
+
func doAdd() error {
wd, _ := os.Getwd()
found := gitpb.NewRepos()