1
0
Fork 0

lazygit: fix autotag

This commit is contained in:
Luca Bilke 2024-07-20 15:05:59 +02:00
parent dcde62ec54
commit b505dc9229
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ customCommands:
description: "prune local branches that have been merged to main/master"
- key: "<c-t>"
context: "global"
command: "tag=$(date +%Y).$(date +%m | sed 's/^0//').$(($(git tag --sort=-v:refname | grep ^$MAJOR.$MINOR | head -n 1 | cut -d . -f 3) + 1)); git tag $tag; git push {{ .SelectedRemote.Name }} $tag;"
command: "tag=$(date +%Y).$(date +%m | sed 's/^0//').$(($(git tag --sort=-v:refname | grep ^$MAJOR.$MINOR | head -n 1 | cut -d . -f 3) + 1)); git tag -m '' $tag; git push {{ .SelectedRemote.Name }} $tag;"
description: "Create and push a tag based off the date"
loadingText: "Tagging/Pushing..."
- key: "<c-v>"