mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Using new complete --keep-order option for __fish_git_recent_commits
The primary motivation for --keep-order for `complete` was to support something like commit history completions, which are returned by git in reverse chronological order and make no sense alphabetically (they are SHA1 hashes). See https://github.com/fish-shell/fish-shell/issues/361 for more info.
This commit is contained in:
parent
94041974e4
commit
34c2bf0f55
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ complete -c git -n '__fish_git_needs_command' -a commit -d 'Record changes to th
|
||||||
complete -c git -n '__fish_git_using_command commit' -l amend -d 'Amend the log message of the last commit'
|
complete -c git -n '__fish_git_using_command commit' -l amend -d 'Amend the log message of the last commit'
|
||||||
complete -f -c git -n '__fish_git_using_command commit' -a '(__fish_git_modified_files)'
|
complete -f -c git -n '__fish_git_using_command commit' -a '(__fish_git_modified_files)'
|
||||||
complete -f -c git -n '__fish_git_using_command commit' -l fixup -d 'Fixup commit to be used with rebase --autosquash'
|
complete -f -c git -n '__fish_git_using_command commit' -l fixup -d 'Fixup commit to be used with rebase --autosquash'
|
||||||
complete -f -c git -n '__fish_git_using_command commit; and __fish_contains_opt fixup' -a '(__fish_git_recent_commits)'
|
complete -f -c git -n '__fish_git_using_command commit; and __fish_contains_opt fixup' -k -a '(__fish_git_recent_commits)'
|
||||||
# TODO options
|
# TODO options
|
||||||
|
|
||||||
### diff
|
### diff
|
||||||
|
|
Loading…
Reference in a new issue