Skip to content

Commit

Permalink
gitconfig: use standard semver sort order by default in git tag -l
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Sep 24, 2024
1 parent 25f6d2d commit 92b17d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

# Listers
tags = tag -l
taglast = !"t() { git tag -l | head -n 1; }; t" # last according to semver sort order (see [tag])
branches = branch -a
remotes = remote -v

Expand Down Expand Up @@ -126,6 +127,14 @@
# Detect whitespace errors when applying a patch
whitespace = fix

[tag]
# sort order of git tags / git tag -l
# hopefully, i'll remember to port this to any ad-hoc release scripts..
sort = "-version:refname"
[versionsort]
# maintain semver standard sort order for pretags of this format
suffix = "-pre"

[core]
hooksPath = ~/repos/dotfiles/git/hooks
# pass pager through less -+X to allow mouse scroll direct
Expand Down

0 comments on commit 92b17d9

Please sign in to comment.