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 # Teach mr to run a few git and svn specific commands.
10 svn_cleanup = svn cleanup "$@"
12 git_push = git push "$@"
15 svn_tag = svn ls "$(LC_ALL=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
20 # - anon checks whether this is an anonymous checkout, by testing what url
22 # - full checks whether I probably want a full checkout (quite large),
23 # if not, the checkout is minimal
24 # - on checks whether the given host basename is one of the listed
25 # values. A value can also have a username in it, ie "joey@dodo".
26 # - wantmedia checks whether I probably want various large media files
28 # - private are hosts I trust private data to
29 # - mylaptop only succeeds if it's on my main development laptop, which
30 # gets lots of extra cruft
32 hostname="$(hostname)"
35 ( GIT_CONFIG=$HOME/.git/config git config remote.origin.url || cat .git/remotes/origin ) | grep -q 'git://'
38 test "$whoami" = joey && ! anon
42 if [ "${host%@*}" != "${host#*@}" ]; then
43 if [ "$whoami" != "${host%@*}" ]; then
48 if [ "$hostname" = "$host" ]; then
55 on joey@kodama joey@dragon joey@dodo joey@turtle
58 on joey@wren joey@kodama joey@dragon joey@dodo joey@turtle \
59 joey@blurbird joey@slug
65 # The root of my home directory.
70 git clone git://git.kitenet.net/joey/home joey
72 git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/home joey
75 # Dummy target to create Maildir. Doesn't run offlineimap since I have that
76 # cronned on machines where I want it.
80 checkout = mkdir Maildir Maildir/cur Maildir/new Maildir/tmp; chmod 700 Maildir
83 # This is a dummy target, all it does is run fixups at the end of
95 git clone git://git.kitenet.net/joey/home-etc .etc
97 git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/home-etc .etc
103 git clone git://git.kitenet.net/joey/cron .cron
105 git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/cron .cron
110 checkout = svn co svn+ssh://joeyh@svn.debian.org/svn/pkg-perl/trunk perl
111 skip = ! mylaptop || ([ "$1" = update ] && ! hours_since "$1" 12)
115 checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
116 skip = ! mylaptop || ([ "$1" = update ] && ! hours_since "$1" 12)
117 push = error "as if!"
120 # I use etckeeper to keep /etc in git. But it only works if I'm root,
121 # and if it's not already in etc, skip it.
122 skip = ! test -d /etc/.git || ! test "$(whoami)" = root
125 # A merge of the upstream dpkg git repo and my own personal branch.
127 git clone git://git.debian.org/git/dpkg/dpkg.git &&
129 git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg &&
131 git checkout -b sourcev3 kite/sourcev3
132 update = git pull origin master && git pull kite sourcev3
133 commit = git commit -a && git push kite
137 [html/www.debian.org]
139 checkout = cvs -d ':ext:joeyh@cvs.debian.org:/cvs/webwml' co -d www.debian.org webwml
140 # cvs sucks sufficiently that I prefer to run these commands by hand,
142 update = echo "skipping cvs update (too slow)"
143 status = echo "skipping cvs status (too ugly)"
144 skip = ! mylaptop || ! full