From 8c36c21e2e1e59f2e31299da2ded6fb9020993b2 Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky <75213+ivankovnatsky@users.noreply.github.com> Date: Sun, 10 Dec 2023 12:41:58 +0200 Subject: [PATCH] Add `git branch --[no-,contains]` completions (#10133) * Add `git branch --[no-,contains]` completions * Add __fish_git_commits as an argument --- share/completions/git.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index e21c868e8..8efcd36ac 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1275,6 +1275,8 @@ complete -f -c git -n '__fish_git_using_command branch' -l set-upstream-to -d 'S complete -f -c git -n '__fish_git_using_command branch' -l merged -d 'List branches that have been merged' complete -f -c git -n '__fish_git_using_command branch' -l no-merged -d 'List branches that have not been merged' complete -f -c git -n '__fish_git_using_command branch' -l unset-upstream -d 'Remove branch upstream information' +complete -f -c git -n '__fish_git_using_command branch' -l contains -d 'List branches that contain the specified commit' -xa '(__fish_git_commits)' +complete -f -c git -n '__fish_git_using_command branch' -l no-contains -d 'List branches that don\'t contain the specified commit' -xa '(__fish_git_commits)' ### bundle set -l bundlecommands create verify list-heads unbundle