summaryrefslogtreecommitdiff
path: root/patchset.Make.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-29 10:02:08 -0600
committerJeff Carr <[email protected]>2025-01-29 12:24:42 -0600
commitb412e50df015769d18b08293e7b1e3b87479ccd9 (patch)
treec42290f1e38f4a31642242103390ba603207e631 /patchset.Make.go
parentaa064500428b5605dccbfc2fd76648faf7e830f7 (diff)
save git commit msg and repo namespace
Diffstat (limited to 'patchset.Make.go')
-rw-r--r--patchset.Make.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/patchset.Make.go b/patchset.Make.go
index e3be08c..aa1660e 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.RepoNamespace = repo.GetGoPath()
if p.Patches == nil {
p.Patches = new(Patches)
}
@@ -182,6 +183,8 @@ func (p *Patch) parseData() string {
switch fields[0] {
case "From":
p.CommitHash = fields[1]
+ case "Subject:":
+ p.Comment = line
case "diff":
p.Files = append(p.Files, line)
}