mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
The xargs -r flag prevents it from running if it receives no input and prevents error messages when there are no branches to be pruned.
parent
3b8812e1c4
commit
fdb604729e
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ customCommands:
|
|||
```yml
|
||||
customCommands:
|
||||
- key: "b"
|
||||
command: "git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d"
|
||||
command: "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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue