diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-25 11:48:22 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-25 16:10:57 +0100 |
| commit | 9357b62b9824299be6fc85b09f57d93d3902f79a (patch) | |
| tree | 04de089315d58bc6b4c5fc4df786d9604a1abb61 /src/bin/ngit/sub_commands/list.rs | |
| parent | 802b115ca648011fd311a22ef3650aaa5a1a0acf (diff) | |
refactor: abstract `get_status`
for use by `ngit list`
Diffstat (limited to 'src/bin/ngit/sub_commands/list.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index 9e35b33..95e17f3 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
| @@ -72,7 +72,10 @@ pub async fn launch() -> Result<()> { | |||
| 72 | 72 | ||
| 73 | let proposals: Vec<nostr::Event> = proposals_and_revisions | 73 | let proposals: Vec<nostr::Event> = proposals_and_revisions |
| 74 | .iter() | 74 | .iter() |
| 75 | .filter(|e| !event_is_revision_root(e)) | 75 | .filter(|e| |
| 76 | // If we wanted to treat to list Pull Requests that revise a Patch we would do this: | ||
| 77 | // e.kind.eq(&KIND_PULL_REQUEST) || | ||
| 78 | !event_is_revision_root(e)) | ||
| 76 | .cloned() | 79 | .cloned() |
| 77 | .collect(); | 80 | .collect(); |
| 78 | 81 | ||