upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-02-21 15:01:11 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-02-21 15:01:11 +0000
commitea5aa6993d4c906c1703563ddc304c324c4ae079 (patch)
tree061ef2f644b099661c0b0b5c74a88ab8f6d549c6 /src/git.rs
parent125ead4bb64d9e4a76266aabe5e826fc23551edc (diff)
feat(send): in-reply-to arg for revised proposal
send a revised version of a proposal using the new in-replyto argument suppliments existing 'root' tag with 'root-revision' e 'reply' tag to the original proposal
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/git.rs b/src/git.rs
index d0eaf03..0a06ab5 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -1313,6 +1313,7 @@ mod tests {
1313 None, 1313 None,
1314 None, 1314 None,
1315 None, 1315 None,
1316 &None,
1316 ) 1317 )
1317 } 1318 }
1318 fn test_patch_applies_to_repository(patch_event: nostr::Event) -> Result<()> { 1319 fn test_patch_applies_to_repository(patch_event: nostr::Event) -> Result<()> {
@@ -1473,6 +1474,7 @@ mod tests {
1473 &vec![oid_to_sha1(&oid1), oid_to_sha1(&oid2), oid_to_sha1(&oid3)], 1474 &vec![oid_to_sha1(&oid1), oid_to_sha1(&oid2), oid_to_sha1(&oid3)],
1474 &TEST_KEY_1_KEYS, 1475 &TEST_KEY_1_KEYS,
1475 &RepoRef::try_from(generate_repo_ref_event()).unwrap(), 1476 &RepoRef::try_from(generate_repo_ref_event()).unwrap(),
1477 &None,
1476 )?; 1478 )?;
1477 1479
1478 events.reverse(); 1480 events.reverse();