Skip to content

Commit e24a256

Browse files
Cornelius Weiggitster
authored andcommitted
completion: add subcommand completion for rerere
Managing recorded resolutions requires command-line usage of git-rerere. Added subcommand completion for rerere and path completion for its subcommand forget. Signed-off-by: Cornelius Weig <cornelius.weig@tngtech.com> Reviewed-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 65d5a1e commit e24a256

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

contrib/completion/git-completion.bash

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,6 +2401,17 @@ _git_replace ()
24012401
__gitcomp_nl "$(__git_refs)"
24022402
}
24032403

2404+
_git_rerere ()
2405+
{
2406+
local subcommands="clear forget diff remaining status gc"
2407+
local subcommand="$(__git_find_on_cmdline "$subcommands")"
2408+
if test -z "$subcommand"
2409+
then
2410+
__gitcomp "$subcommands"
2411+
return
2412+
fi
2413+
}
2414+
24042415
_git_reset ()
24052416
{
24062417
__git_has_doubledash && return

0 commit comments

Comments
 (0)