lazygit: fix autotag
This commit is contained in:
parent
dcde62ec54
commit
b505dc9229
|
@ -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>"
|
||||
|
|
Loading…
Reference in New Issue