From: Britton Leo Kerin Date: Sun, 07 Jan 2024 21:42:00 GMT Subject: [PATCH 1/1] completion: dir-type optargs for am, format-patch Message-ID: <8a8dfcfc-3369-42b8-8387-f1af33202b16@smtp-relay.sendinblue.com> In-Reply-To: <20240107214200.29684-1-britton.kerin@gmail.com> Signed-off-by: Britton Leo Kerin --- contrib/completion/git-completion.bash | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 185b47d802..c3b0a3699c 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1356,6 +1356,30 @@ __git_count_arguments () printf "%d" $c } + +# Complete actual dir (not pathspec), respecting any -C options. +# +# Usage: __git_complete_refs [