diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-20 12:00:22 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-20 12:00:22 +0000 |
| commit | 32a3ca5b3c5fa202ffb6b5670f3aa1e77c331f8d (patch) | |
| tree | f1168bb488e60ed364910a1e794bb93d8817b771 /src/sub_commands/send.rs | |
| parent | e472f83e1fa280025234b6c1eeda1ecfce443e79 (diff) | |
feat(list): download or apply with git am
add the option to download patches or apply them with git am
give more granular messages about the state of proposals.
add support for replacing old proposal version with a new one
Diffstat (limited to 'src/sub_commands/send.rs')
| -rw-r--r-- | src/sub_commands/send.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs index c3b3fda..004d263 100644 --- a/src/sub_commands/send.rs +++ b/src/sub_commands/send.rs | |||
| @@ -532,6 +532,13 @@ pub fn event_is_patch_set_root(event: &nostr::Event) -> bool { | |||
| 532 | event.kind.as_u64().eq(&PATCH_KIND) && event.iter_tags().any(|t| t.as_vec()[1].eq("root")) | 532 | event.kind.as_u64().eq(&PATCH_KIND) && event.iter_tags().any(|t| t.as_vec()[1].eq("root")) |
| 533 | } | 533 | } |
| 534 | 534 | ||
| 535 | pub fn patch_supports_commit_ids(event: &nostr::Event) -> bool { | ||
| 536 | event.kind.as_u64().eq(&PATCH_KIND) | ||
| 537 | && event | ||
| 538 | .iter_tags() | ||
| 539 | .any(|t| t.as_vec()[0].eq("commit-pgp-sig")) | ||
| 540 | } | ||
| 541 | |||
| 535 | #[allow(clippy::too_many_arguments)] | 542 | #[allow(clippy::too_many_arguments)] |
| 536 | pub fn generate_patch_event( | 543 | pub fn generate_patch_event( |
| 537 | git_repo: &Repo, | 544 | git_repo: &Repo, |