]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ab/branch-sort' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 8 Feb 2021 22:05:55 +0000 (14:05 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Feb 2021 22:05:55 +0000 (14:05 -0800)
The implementation of "git branch --sort" wrt the detached HEAD
display has always been hacky, which has been cleaned up.

* ab/branch-sort:
  branch: show "HEAD detached" first under reverse sort
  branch: sort detached HEAD based on a flag
  ref-filter: move ref_sorting flags to a bitfield
  ref-filter: move "cmp_fn" assignment into "else if" arm
  ref-filter: add braces to if/else if/else chain
  branch tests: add to --sort tests
  branch: change "--local" to "--list" in comment


Trivial merge