Skip to content

Commit 66aab66

Browse files
authored
add recent commits to completion for git diff (fish-shell#10321)
1 parent 46b7e91 commit 66aab66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

share/completions/git.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,7 @@ complete -f -c git -n '__fish_git_using_command describe' -l first-parent -d 'Fo
14111411
complete -c git -n __fish_git_needs_command -a diff -d 'Show changes between commits and working tree'
14121412
complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_ranges)'
14131413
complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_complete_stashes)'
1414+
complete -c git -n '__fish_git_using_command diff' -n 'not contains -- -- (commandline -xpc)' -ka '(__fish_git_recent_commits --all)'
14141415
complete -c git -n '__fish_git_using_command diff' -l cached -d 'Show diff of changes in the index'
14151416
complete -c git -n '__fish_git_using_command diff' -l staged -d 'Show diff of changes in the index'
14161417
complete -c git -n '__fish_git_using_command diff' -l no-index -d 'Compare two paths on the filesystem'

0 commit comments

Comments
 (0)