diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 22:48:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 22:48:32 -0500 |
| commit | c5025d25b2cb8306539f43c836063e0b55e49792 (patch) | |
| tree | acd4db7a7d295520e7cf09e62e5e0727828abb3d | |
| parent | e09849b1a21349f1ac5eaa8d61547a38815c28c6 (diff) | |
stuffv0.22.141
| -rw-r--r-- | doPatch.go | 1 | ||||
| -rw-r--r-- | helperPatches.go | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -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 } diff --git a/helperPatches.go b/helperPatches.go index 9280adb..c869697 100644 --- a/helperPatches.go +++ b/helperPatches.go @@ -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 |
