On Sun, Jun 8, 2025 at 12:22 PM Nelson Benítez León <nbenitezl@xxxxxxxxx> wrote: > > Hi, I'm attaching a patch for the Bash completion script, to be able > to change the default implicit alphabetical ordering used when > returning refs e.g. when doing "git checkout <TAB>" I keep meaning to come back and review this, and then I see that the patch is an attached file and not sent over plaintext (which was necessary because the GMail web client breaks patches). Perhaps you could submit your patch via GitGitGadget (https://gitgitgadget.github.io/) so that submission is in the expected shape for this project? > > I wanted the completed refs to be ordered descending by committer date > i.e. --sort="-committerdate" because that shows on top the branches > I've been recently working on. The completion script didn't allow to > set a custom ordering from the default alphabetical one, so I'm > sending a patch which adds a new config var where the user can set > their desired custom ordering. > > I've not added tests because I'm not familiar with the test machinery, > hopefully this is still useful. > > Regards, > > PD. I send from Gmail web interface because git send-email for Gmail > requires 2-factor authentication and I chose not to enable it. -- D. Ben Knoble