rework lazygit prune cmd
This commit is contained in:
parent
28cae8d25a
commit
3365031f13
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
gui:
|
||||
nerdFontsVersion: "3"
|
||||
# mouseEvents: false
|
||||
update:
|
||||
days: 1
|
||||
refresher:
|
||||
|
@ -9,10 +8,10 @@ refresher:
|
|||
disableStartupPopups: true
|
||||
customCommands:
|
||||
- key: b
|
||||
command: "git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d"
|
||||
command: "git branch --merged main | grep -v '^[ *]*main$' | xargs -r git branch -d; git branch --merged master | grep -v '^[ *]*master$' | xargs -r git branch -d"
|
||||
context: "localBranches"
|
||||
loadingText: "Pruning..."
|
||||
description: "prune local branches that have been merged to master"
|
||||
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; "
|
||||
|
|
Loading…
Add table
Reference in a new issue