store the new hash

This commit is contained in:
Jeff Carr 2025-01-29 11:43:40 -06:00
parent b412e50df0
commit 393b91c415
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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`