summaryrefslogtreecommitdiff
path: root/notes.go
diff options
context:
space:
mode:
Diffstat (limited to 'notes.go')
-rw-r--r--notes.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/notes.go b/notes.go
new file mode 100644
index 0000000..59543c9
--- /dev/null
+++ b/notes.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "strings"
+
+ "go.wit.com/lib/protobuf/gitpb"
+ "go.wit.com/log"
+)
+
+func purgeNotes(repo *gitpb.Repo) error {
+ result := repo.Run([]string{"git", "notes", "list"})
+ for _, line := range result.Stdout {
+ parts := strings.Fields(line)
+ log.Info("line:", line, "part", parts[1])
+ blah := repo.Run([]string{"git", "notes", "remove", parts[1]})
+ log.Info(strings.Join(blah.Stdout, "\n"))
+ }
+ return nil
+}