Git: fix lasttag showing non-version tags
Alan Pearce alan@alanpearce.eu
Fri, 03 Aug 2018 14:14:38 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M git/.config/git/config → git/.config/git/config
@@ -17,7 +17,7 @@ ci = commit br = branch co = checkout ready = rebase -i @{u} - lasttag = "!sh -c 'git tag --sort=version:refname | tail -n1'" + lasttag = "!sh -c 'git tag --sort=version:refname | grep \"^v\\?[0-9]\" | tail -n1'" pending = "!sh -c 'git log --oneline --merges --grep=\"Merge pull request\" ...$(git lasttag)'" lg = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' ignored = ls-files --others -i --exclude-standard