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