upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/cli.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-12 09:58:19 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-12 09:58:19 +0000
commitbc6be27ae6d1d2befe0027c19aba3f6cd2d22535 (patch)
treeff77150dff308f48b680787c57482634a1c3561d /src/bin/ngit/cli.rs
parent8293af72744bc89beac57a194602938536b429db (diff)
feat: add ngit apply command for non-interactive patch application
Adds a new 'ngit apply <event-id>' command that applies proposal patches to the current branch. Supports --stdout flag to output patches for piping to git am. Phase 2 of non-interactive ngit list implementation.
Diffstat (limited to 'src/bin/ngit/cli.rs')
-rw-r--r--src/bin/ngit/cli.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs
index 5c1a097..8f55274 100644
--- a/src/bin/ngit/cli.rs
+++ b/src/bin/ngit/cli.rs
@@ -111,6 +111,14 @@ pub enum Commands {
111 /// Proposal event-id (hex) or nevent (bech32) 111 /// Proposal event-id (hex) or nevent (bech32)
112 id: String, 112 id: String,
113 }, 113 },
114 /// apply proposal patches to current branch
115 Apply {
116 /// Proposal event-id or nevent
117 id: String,
118 /// Output patches to stdout instead of applying
119 #[arg(long)]
120 stdout: bool,
121 },
114 /// update repo git servers to reflect nostr state (add, update or delete 122 /// update repo git servers to reflect nostr state (add, update or delete
115 /// remote refs) 123 /// remote refs)
116 Sync(sub_commands::sync::SubCommandArgs), 124 Sync(sub_commands::sync::SubCommandArgs),