blob: 59543c9957314c9c8b784d49455e238b2fda1cee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}
|