Skip to content

Commit

Permalink
Using new complete --keep-order option for __fish_git_recent_commits
Browse files Browse the repository at this point in the history
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 #361 for more info.
  • Loading branch information
mqudsi authored and Kurtis Rader committed Jul 26, 2017
1 parent 9404197 commit 34c2bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/completions/git.fish
Expand Up @@ -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 -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; 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

### diff
Expand Down

0 comments on commit 34c2bf0

Please sign in to comment.