upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/prs/create.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-01-22 00:00:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-01-22 00:00:00 +0000
commit675d44b8349078f2d231ca37a1621254a4c50ab5 (patch)
tree784286231dc6fade15266a6327b58daffe5bb1c8 /src/sub_commands/prs/create.rs
parent9200b96bd8fe7ac254e41048790d7411937c3f95 (diff)
feat(git) save pgp sig in patch event
so that commit ids can be maintained
Diffstat (limited to 'src/sub_commands/prs/create.rs')
-rw-r--r--src/sub_commands/prs/create.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs
index 5e41a56..e5d6262 100644
--- a/src/sub_commands/prs/create.rs
+++ b/src/sub_commands/prs/create.rs
@@ -382,6 +382,14 @@ pub fn generate_patch_event(
382 TagKind::Custom("parent-commit".to_string()), 382 TagKind::Custom("parent-commit".to_string()),
383 vec![commit_parent.to_string()], 383 vec![commit_parent.to_string()],
384 ), 384 ),
385 Tag::Generic(
386 TagKind::Custom("commit-sig".to_string()),
387 vec![
388 git_repo
389 .extract_commit_pgp_signature(commit)
390 .unwrap_or_default(),
391 ],
392 ),
385 Tag::Description(git_repo.get_commit_message(commit)?.to_string()), 393 Tag::Description(git_repo.get_commit_message(commit)?.to_string()),
386 Tag::Generic( 394 Tag::Generic(
387 TagKind::Custom("author".to_string()), 395 TagKind::Custom("author".to_string()),