diff options
author | Alan Pearce | 2018-08-03 14:14:38 +0200 |
---|---|---|
committer | Alan Pearce | 2018-08-03 14:14:38 +0200 |
commit | 8420b4cdcafb33d21d0f75902f5bd407f08ec740 (patch) | |
tree | b992d448798aefa760d8aa6cc03036412946442e | |
parent | f6d6c00b0ce2318f2c11fd0aff156ef7e0199217 (diff) | |
download | nixfiles-8420b4cdcafb33d21d0f75902f5bd407f08ec740.tar.lz nixfiles-8420b4cdcafb33d21d0f75902f5bd407f08ec740.tar.zst nixfiles-8420b4cdcafb33d21d0f75902f5bd407f08ec740.zip |
Git: fix lasttag showing non-version tags
-rw-r--r-- | git/.config/git/config | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/.config/git/config b/git/.config/git/config index e42b4bbb..02c8b51a 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -17,7 +17,7 @@ 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 |