From bc6be27ae6d1d2befe0027c19aba3f6cd2d22535 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 12 Feb 2026 09:58:19 +0000 Subject: feat: add ngit apply command for non-interactive patch application Adds a new 'ngit apply ' 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. --- src/bin/ngit/cli.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/bin/ngit/cli.rs') 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 { /// Proposal event-id (hex) or nevent (bech32) id: String, }, + /// apply proposal patches to current branch + Apply { + /// Proposal event-id or nevent + id: String, + /// Output patches to stdout instead of applying + #[arg(long)] + stdout: bool, + }, /// update repo git servers to reflect nostr state (add, update or delete /// remote refs) Sync(sub_commands::sync::SubCommandArgs), -- cgit v1.2.3