From 2bf96973695eb26de8895edee5e2c1c51701db8b Mon Sep 17 00:00:00 2001 From: Ross Nomann Date: Sat, 27 Jun 2026 02:11:47 +0200 Subject: [PATCH] git-completions: add git cherry --- custom-completions/git/git-completions.nu | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index c6f95913a..431908658 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -539,6 +539,14 @@ export extern "git switch" [ --track(-t) # set "upstream" configuration ] +# Find commits yet to be applied to upstream +export extern "git cherry" [ + upstream?: string@"nu-complete git mergable sources" # Upstream branch to search for equivalent commits. Defaults to the upstream branch of HEAD. + head?: string@"nu-complete git mergable sources" # Working branch; defaults to HEAD. + limit?: string # Do not report commits up to (and including) limit. + --verbose(-v) # Show the commit subjects next to the SHA1s. +] + # Apply the change introduced by an existing commit export extern "git cherry-pick" [ commit?: string@"nu-complete git commits all" # The commit ID to be cherry-picked