From b60279b19aa7cf0c94bc34795735be86a434a91c Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 1 Jan 2024 12:00:00 -0600 Subject: a better protobuf file to switch to later --- patchset.Make.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'patchset.Make.go') diff --git a/patchset.Make.go b/patchset.Make.go index 675f5cc..5081cb9 100644 --- a/patchset.Make.go +++ b/patchset.Make.go @@ -110,7 +110,19 @@ func (pset *Patchset) makePatchSetNew(repo *gitpb.Repo) error { return err } + // maybe better? maybe worse? + // git format-patch -o patches --stdout > my-patch.mbox + // git format-patch --stdout -5 > my-patch.mbox # last 5 patches + // git am < my-patch.mbox // git format-patch branch1..branch2 + // export GIT_COMMITTER_DATE="2024-01-01T12:00:00" + // export GIT_AUTHOR_DATE="2024-01-01T12:00:00" + // export GIT_COMMITTER_NAME="Your Name" + // export GIT_COMMITTER_EMAIL="your.email@example.com" + // export GIT_AUTHOR_NAME="Your Name" + // export GIT_AUTHOR_EMAIL="your.email@example.com" + // git am < patch.mbox + cmd := []string{"git", "format-patch", "-o", repoDir, startBranch + ".." + endBranch} r := repo.Run(cmd) if r.Error != nil { -- cgit v1.2.3