All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # An example config file for the mr(1) command.
3 # This is fairly close to the config file used by the author
4 # although slightly cut down.
7 # Include all available libs.
8 include = cat /usr/share/mr/* 2>/dev/null || true
9 #include = cat $HOME/src/mr/mrconfig.git-fake-bare
10 # Teach mr to run a few git and svn specific commands.
11 svn_cleanup = svn cleanup "$@"
13 git_push = git push "$@"
15 svn_tag = svn ls "$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2 | sed -e 's/trunk/tags/')"
16 # This hack is here because git pull stupidly outputs tag info to stderr.
17 # Shut it up but let real errors through, for use in cron.
18 quietupdate = mr -s -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' || true
19 # Tests used in the skips below.
20 # - wantsrc checks whether I probably want a full source checkout (quite
22 # - wantmedia checks whether I probably want various large media files
24 # - private are hosts I trust private data to
25 # - mylaptop only succeeds if it's on my main development laptop, which
26 # gets lots of extra cruft
27 # - kite only succeeds on kite
30 test "$(whoami)" = joey
33 if [ "$(whoami)" = joey ]; then
43 if [ "$(whoami)" = joey ]; then
45 wren|kodama|dragon|dodo|bluebird)
53 test "$(hostname)" = kodama
56 test "$(hostname)" = wren
60 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/mr
64 checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
65 skip = ! mylaptop || ! wantsrc ||
66 ([ "$1" = update ] && ! hours_since "$1" 12)
69 # A merge of the upstream dpkg git repo and my own personal branch.
71 git clone git://git.debian.org/git/dpkg/dpkg.git &&
73 git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg &&
75 git checkout -b sourcev3 kite/sourcev3
76 update = git pull origin master && git pull kite sourcev3
77 commit = git push kite
83 CVSROOT=:ext:joeyh@cvs.debian.org:/cvs/webwml
84 cvs co -d www.debian.org webwml
85 # cvs sucks sufficiently that I prefer to run these commands by hand,
87 update = echo "skipping cvs update (too slow)"
88 status = echo "skipping cvs status (too ugly)"
89 skip = ! mylaptop || ! wantsrc
91 # My home directory, which I keep in svn.
93 checkout = svn co svn+ssh://svn.kitenet.net/srv/svn/joey/trunk/home-$(hostname) joey
94 # run svnfix after each update
95 update = svn update && svnfix
98 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/mail
101 # I don't keep my music in revision control, but mr can be taught to use
102 # unison to synchronise it.
104 checkout = unison -batch sound
105 update = unison -batch sound
106 commit = unison sound
108 # Update this last of all.
111 # Example of how to remember to delete a repo, when one mrconfig file is
112 # used on multiple systems. If you're feeling brave, use rm -rf $MR_REPO
113 # instead. This approach can also be used for renames.
115 update = error "$MR_REPO is no longer used and should be deleted"
116 skip = ! test -d "$MR_REPO"