mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects-dir.mk: Add taget git-show-non-master-branches
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3961d47f07
commit
2dffa57196
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue