From 467b03d715a1c428708919e9af187b81ddccaf59 Mon Sep 17 00:00:00 2001 From: Vishrut Sachan Date: Wed, 8 Apr 2026 15:24:07 +0530 Subject: [PATCH] git completions: prioritize recent commits for rebase --interactive Fixes #12537 Closes #12619 --- share/completions/git.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/completions/git.fish b/share/completions/git.fish index 29cbb4666..f21f2a72c 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -2161,6 +2161,7 @@ complete -x -c git -n '__fish_git_using_command push' -l exec -d 'Same as --rece ### rebase complete -f -c git -n __fish_git_needs_command -a rebase -d 'Reapply commit sequence on a new base' __fish_git_add_revision_completion -n '__fish_git_using_command rebase' +complete -f -c git -n '__fish_git_using_command rebase' -n 'string match -rq -- "^-i|^--interactive" (commandline -xpc)' -ka '(__fish_git_recent_commits)' complete -f -c git -n '__fish_git_using_command rebase' -n __fish_git_is_rebasing -l continue -d 'Restart the rebasing process' complete -f -c git -n '__fish_git_using_command rebase' -n __fish_git_is_rebasing -l abort -d 'Abort the rebase operation' complete -f -c git -n '__fish_git_using_command rebase' -n __fish_git_is_rebasing -l edit-todo -d 'Edit the todo list'