This commit is contained in:
Jeff Carr 2025-09-04 22:48:32 -05:00
parent e09849b1a2
commit c5025d25b2
2 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,7 @@ func doPatch() error {
log.Info("patch", p.Filename, p.Namespace)
}
me.forge.SubmitPatchesNew(old, "oldpatchset")
log.Infof("submitted %d old patches\n", old.Len())
return nil
}

View File

@ -108,6 +108,14 @@ func cleanSubject(line string) string {
return strings.TrimSpace(cleaned)
}
// jcarr@framebook:~/go/src/go.wit.com/lib/protobuf/forgepb$ git branch --contains 4a27e7702b9b975b066ec9d2ee7ac932d86552e3
// * jcarr
// jcarr@framebook:~/go/src/go.wit.com/lib/protobuf/forgepb$ git merge-base --is-ancestor "4a27e7702b9b975b066ec9d2ee7ac932d86552e3" "devel" ; echo $?
// 1
// jcarr@framebook:~/go/src/go.wit.com/lib/protobuf/forgepb$ git merge-base --is-ancestor "4a27e7702b9b975b066ec9d2ee7ac932d86552e3" "jcarr" ; echo $?
// 0
func findCommitByHash(hash string, subject string) (string, error) {
cmd := exec.Command("git", "log", "--pretty=format:%H %s")
var out bytes.Buffer