summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2021-08-27 11:36:27 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2021-08-27 11:36:27 +0100
commitaa3ac21ee9f252eb144cb558c295666431baf788 (patch)
tree2576eaf1335d91b189ab69597ba9124e59baecdb
parentUpdate standard build options (diff)
downloadutil-aa3ac21ee9f252eb144cb558c295666431baf788.tar.bz2
util-aa3ac21ee9f252eb144cb558c295666431baf788.tar.xz
util-aa3ac21ee9f252eb144cb558c295666431baf788.zip
Helper to find branches with bugs (b) and feature (f) prefixes
-rw-r--r--bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 65890e4..87a2343 100644
--- a/bashrc
+++ b/bashrc
@@ -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
}