# main local branch (the one we want checked out) master = master # all local branches (including those needed by child clones) branches = $(master) # local name of origin origin = origin allbranches = $(sort $(master) $(branches)) currentbranch := $(shell git branch | grep ^\* | awk '{ print $2 }') noncurrentbranches := $(filter-out $(currentbranch),$(branches)) #originbranches := $(shell git branch -r | perl -ne 'm,^.\s+'"$$origin"'/([a-z_]\S+)$, && print "$$1\n"' ) localbranches := $(shell git branch | perl -ne 'm,^.\s+([a-z_]\S+)$$, && print "$$1\n"' ) update: git fetch $(origin) for branch in $(filter-out $(localbranches),$(allbranches)); do \ git branch $$branch $(origin)/$$branch; \ done for branch in $(noncurrentbranches); do \ git checkout $$branch; \ git pull $(origin); \ done git checkout $(master) git pull $(origin) init: git init git remote add -f -m "$(master)" origin "$(origin)" git merge origin # git config remote.origin.push +"refs/heads/$(master)":"refs/heads/$(master)" .PHONY: update init 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/89/ed
diff options
context:
space:
mode:
Diffstat (limited to 'tags/89/ed')
-rw-r--r--tags/89/ed/000901c75b7e%248f605310%24640fa8c0@kontoret/inbox0
-rw-r--r--tags/89/ed/000901c75b7e%248f605310%24640fa8c0@kontoret/old0
-rw-r--r--tags/89/ed/000901c75b7e%248f605310%24640fa8c0@kontoret/replied0
-rw-r--r--tags/89/ed/1136DF79530454478F128668259D75C4065E5B@daten-server.digital-elektronik.local/debian0
-rw-r--r--tags/89/ed/19980213144157.10700.qmail@hotmail.com/inbox0
-rw-r--r--tags/89/ed/19980213144157.10700.qmail@hotmail.com/old0
-rw-r--r--tags/89/ed/2011-08-22T23-35-29@devnull.michael-prokop.at/debian0
-rw-r--r--tags/89/ed/2011-08-22T23-35-29@devnull.michael-prokop.at/signed0
-rw-r--r--tags/89/ed/20110422184556.GI4492@jones.dk/debian0
-rw-r--r--tags/89/ed/20110422184556.GI4492@jones.dk/sent0
-rw-r--r--tags/89/ed/20110422184556.GI4492@jones.dk/signed0
-rw-r--r--tags/89/ed/20130425005213.9099FD000A3@sb.lwn.net/inbox0
-rw-r--r--tags/89/ed/20130425005213.9099FD000A3@sb.lwn.net/old0
-rw-r--r--tags/89/ed/20140725113043.GA3934@ftbfs.de/debian0
-rw-r--r--tags/89/ed/20140725113043.GA3934@ftbfs.de/unread0
-rw-r--r--tags/89/ed/20170426043746.C28611C098@jawa.homebase.dk/hb0
-rw-r--r--tags/89/ed/20170426043746.C28611C098@jawa.homebase.dk/sys0
-rw-r--r--tags/89/ed/20170426043746.C28611C098@jawa.homebase.dk/unread0
-rw-r--r--tags/89/ed/20171008200002.9571C79FD@lxp5.free-owl.de/sys0
-rw-r--r--tags/89/ed/20171008200002.9571C79FD@lxp5.free-owl.de/unread0
-rw-r--r--tags/89/ed/20171219190246.9F1BC1C0D3@jawa.homebase.dk/hb0
-rw-r--r--tags/89/ed/20171219190246.9F1BC1C0D3@jawa.homebase.dk/sys0
-rw-r--r--tags/89/ed/20171219190246.9F1BC1C0D3@jawa.homebase.dk/unread0
-rw-r--r--tags/89/ed/4528D4DDCC90D211B74D0060085CCE1403FA0DB3@oestmb005_b0.tdk.dk/inbox0
-rw-r--r--tags/89/ed/4528D4DDCC90D211B74D0060085CCE1403FA0DB3@oestmb005_b0.tdk.dk/old0
-rw-r--r--tags/89/ed/F2AFA2D3FAE097AEC6FEA5CA645F6874C20537DF@WEBTASK01N03/isp0
-rw-r--r--tags/89/ed/F2AFA2D3FAE097AEC6FEA5CA645F6874C20537DF@WEBTASK01N03/unread0
-rw-r--r--tags/89/ed/mailman.791.1591752666.25472.pkg-javascript-devel@alioth-lists.debian.net/inbox0
-rw-r--r--tags/89/ed/mailman.791.1591752666.25472.pkg-javascript-devel@alioth-lists.debian.net/killed0
-rw-r--r--tags/89/ed/mailman.791.1591752666.25472.pkg-javascript-devel@alioth-lists.debian.net/unread0
30 files changed, 0 insertions, 0 deletions