Skip to content

Commit 788e144

Browse files
authored
git-completions: add git cherry (#1264)
Closes #1263
1 parent 800e622 commit 788e144

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

custom-completions/git/git-completions.nu

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,14 @@ export extern "git switch" [
539539
--track(-t) # set "upstream" configuration
540540
]
541541

542+
# Find commits yet to be applied to upstream
543+
export extern "git cherry" [
544+
upstream?: string@"nu-complete git mergable sources" # Upstream branch to search for equivalent commits. Defaults to the upstream branch of HEAD.
545+
head?: string@"nu-complete git mergable sources" # Working branch; defaults to HEAD.
546+
limit?: string # Do not report commits up to (and including) limit.
547+
--verbose(-v) # Show the commit subjects next to the SHA1s.
548+
]
549+
542550
# Apply the change introduced by an existing commit
543551
export extern "git cherry-pick" [
544552
commit?: string@"nu-complete git commits all" # The commit ID to be cherry-picked

0 commit comments

Comments
 (0)