projects-dir.mk: Add taget git-show-non-master-branches

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-06-12 09:55:14 +00:00
commit 2dffa57196

View file

@ -190,6 +190,16 @@ git-clone: ssh-wrapper.sh
git-clone-%: ssh-wrapper.sh
PGIT_CLONE_FROM_USER=$* $(PGIT) clone
git-show-non-master-branches:
@$(PGIT) branch 2>&1 | \
sed '/^#\|^*/!d; s/.*git -C //; s/ *branch *//; s/ *\* *//' | \
while read p; do \
read b ;\
if [ "$$b" != "master" ]; then \
echo " * $$p: $$b" ;\
fi ;\
done
pull-%: ssh-wrapper.sh
PGIT_CLONE_FROM_USER=$* $(PGIT) clone