diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2021-08-27 11:36:27 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2021-08-27 11:36:27 +0100 |
commit | aa3ac21ee9f252eb144cb558c295666431baf788 (patch) | |
tree | 2576eaf1335d91b189ab69597ba9124e59baecdb | |
parent | Update standard build options (diff) | |
download | util-aa3ac21ee9f252eb144cb558c295666431baf788.tar.bz2 util-aa3ac21ee9f252eb144cb558c295666431baf788.tar.xz util-aa3ac21ee9f252eb144cb558c295666431baf788.zip |
Helper to find branches with bugs (b) and feature (f) prefixes
-rw-r--r-- | bashrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -273,6 +273,9 @@ gppdmb() { PARENT=${1:-master} git checkout $PARENT && git pull --prune && git delete-merged-branches } +findbranches() { + find ~/work/ -name .git -type d | while read r ; do echo $r ; git -C $(dirname $r) branch -a | grep "\<.$1[^0-9]" ; done +} createAllBranches() { for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do git branch --track "${branch#*/*/}" "$branch"; done } |