diff options
| author | Your Name <[email protected]> | 2024-01-01 12:00:00 -0600 |
|---|---|---|
| committer | Your Name <[email protected]> | 2024-01-01 12:00:00 -0600 |
| commit | b60279b19aa7cf0c94bc34795735be86a434a91c (patch) | |
| tree | 8cdbc83491732ee417bcfbf961fd5d22453428d4 /patchset.Make.go | |
| parent | 95fcacfde0f1c01f9ce46d5ec6a239a6e778ec27 (diff) | |
a better protobuf file to switch to later
Diffstat (limited to 'patchset.Make.go')
| -rw-r--r-- | patchset.Make.go | 12 |
1 files changed, 12 insertions, 0 deletions
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 <commit-range> > 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="[email protected]" + // export GIT_AUTHOR_NAME="Your Name" + // export GIT_AUTHOR_EMAIL="[email protected]" + // git am < patch.mbox + cmd := []string{"git", "format-patch", "-o", repoDir, startBranch + ".." + endBranch} r := repo.Run(cmd) if r.Error != nil { |
