summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 11:43:40 -0600
committerJeff Carr <[email protected]>2025-01-29 12:24:42 -0600
commit393b91c415390f0030153d26b73d6af4e7e465a2 (patch)
treed1612d9845a14307b3b0d82e378cbb2e984d7281
parentb412e50df015769d18b08293e7b1e3b87479ccd9 (diff)
store the new hash
-rw-r--r--patchset.Make.go1
-rw-r--r--patchset.proto1
2 files changed, 2 insertions, 0 deletions
diff --git a/patchset.Make.go b/patchset.Make.go
index aa1660e..3b32bc9 100644
--- a/patchset.Make.go
+++ b/patchset.Make.go
@@ -159,6 +159,7 @@ func (p *Patchset) addPatchFiles(repo *gitpb.Repo) error {
patch.Data = data
patch.parseData()
patch.StartHash = repo.DevelHash()
+ patch.NewHash = "na"
patch.RepoNamespace = repo.GetGoPath()
if p.Patches == nil {
p.Patches = new(Patches)
diff --git a/patchset.proto b/patchset.proto
index b21dbee..4e1d94f 100644
--- a/patchset.proto
+++ b/patchset.proto
@@ -16,6 +16,7 @@ message Patch {
repeated string Files = 10; // the filenames this patch changes
string comment = 11; // the git commit message (in patch form)
string repoNamespace = 12; // the base repo git URL
+ string newHash = 13; // new hash after git am
}
message Patches { // `autogenpb:marshal`