1
0
Fork 0

add autotagging binding to lazygit

This commit is contained in:
Luca Bilke 2024-02-11 16:23:38 +01:00
parent f0563a7ee3
commit b65e8adb20

View file

@ -13,6 +13,11 @@ customCommands:
context: "localBranches"
loadingText: "Pruning..."
description: "prune local branches that have been merged to 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; "
description: "Create and push a tag based off the date"
loadingText: "Tagging/Pushing..."
- key: "<c-v>"
context: "global"
description: "Create new conventional commit"