git completions: Change some default ASC/DESC for sort

Dates and file sizes are kept DESC while names, emails, and hashes are now
defaulted to ASC.
This commit is contained in:
Mahmoud Al-Qudsi 2022-09-30 15:09:14 -05:00
parent d9bb91f1e1
commit 6df57a6712

View file

@ -2314,17 +2314,17 @@ function __fish_git_sort_keys
echo -authordate\tWhen the latest commit was actually made echo -authordate\tWhen the latest commit was actually made
echo -committerdate\tWhen the branch was last committed or rebased echo -committerdate\tWhen the branch was last committed or rebased
echo -creatordate\tWhen the latest commit or tag was created echo -creatordate\tWhen the latest commit or tag was created
echo -creator\tThe name of the commit author echo creator\tThe name of the commit author
echo -objectname\tThe complete SHA1 echo objectname\tThe complete SHA1
echo -objectname:short\tThe shortest non-ambiguous SHA1 echo objectname:short\tThe shortest non-ambiguous SHA1
echo -refname\tThe complete, unambiguous git ref name echo refname\tThe complete, unambiguous git ref name
echo -refname:short\tThe shortest non-ambiguous ref name echo refname:short\tThe shortest non-ambiguous ref name
echo -author\tThe name of the author of the latest commit echo author\tThe name of the author of the latest commit
echo -committer\tThe name of the person who committed latest echo committer\tThe name of the person who committed latest
echo -tagger\tThe name of the person who created the tag echo tagger\tThe name of the person who created the tag
echo -authoremail\tThe email of the author of the latest commit echo authoremail\tThe email of the author of the latest commit
echo -committeremail\tThe email of the person who committed last echo committeremail\tThe email of the person who committed last
echo -taggeremail\tThe email of the person who created the tag echo taggeremail\tThe email of the person who created the tag
end end
complete -f -c git -n "__fish_seen_subcommand_from $sortcommands" -l sort -d 'Sort results by' -a "(__fish_git_sort_keys)" complete -f -c git -n "__fish_seen_subcommand_from $sortcommands" -l sort -d 'Sort results by' -a "(__fish_git_sort_keys)"