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 "$@"
13 svn_tag = svn ls "$(LC_ALL=C svn info . | grep -i ^URL: | cut -d ' ' -f 2 | sed -e 's/trunk/tags/')"
14 # I prefer to git-svn rebase to fetch
15 git_svn_update = git svn rebase
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 # - mylaptop only succeeds if it's on my main development laptop, which
27 # gets lots of extra cruft
29 hostname="$(hostname)"
32 ( GIT_CONFIG=$HOME/.git/config git config remote.origin.url || cat .git/remotes/origin ) | grep -q 'git://'
35 test "$whoami" = joey && ! anon
39 if [ "${host%@*}" != "${host#*@}" ]; then
40 if [ "$whoami" != "${host%@*}" ]; then
45 if [ "$hostname" = "$host" ]; then
55 # The root of my home directory.
60 git clone git://git.kitenet.net/joey/home joey
62 git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/home joey
66 # Dummy target to create Maildir. Doesn't run offlineimap since I have that
67 # cronned on machines where I want it.
70 checkout = mkdir Maildir Maildir/cur Maildir/new Maildir/tmp; chmod 700 Maildir
74 # I use mairix to index my mail archive; run it after each update.
75 checkout = git clone ssh://joey@git.kitenet.net/srv/git/joey/private/mail
76 update = git pull "$@"; if [ "$(which mairix)" ]; then mairix -Q; fi
80 # This is a dummy target, all it does is run fixups at the end of
82 update = $HOME/bin/fixups
83 checkout = $HOME/bin/fixups
91 git clone git://git.kitenet.net/joey/home-etc .etc
93 git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/home-etc .etc
99 git clone git://git.kitenet.net/joey/cron .cron
101 git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/cron .cron
106 checkout = svn co svn+ssh://joeyh@svn.debian.org/svn/pkg-perl/trunk perl
107 skip = ! mylaptop || ([ "$1" = update ] && ! hours_since "$1" 12)
111 checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
112 skip = ! mylaptop || ([ "$1" = update ] && ! hours_since "$1" 12)
113 push = error "as if!"
116 # I use etckeeper to keep /etc in git. But it only works if I'm root,
117 # and if it's not already in etc, skip it.
118 skip = ! test -d /etc/.git || ! test "$(whoami)" = root
121 # A merge of the upstream dpkg git repo and my own personal branch.
123 git clone git://git.debian.org/git/dpkg/dpkg.git &&
125 git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg &&
127 git checkout -b sourcev3 kite/sourcev3
128 update = git pull origin master && git pull kite sourcev3
129 commit = git commit -a && git push kite
133 [html/www.debian.org]
135 checkout = cvs -d ':ext:joeyh@cvs.debian.org:/cvs/webwml' co -d www.debian.org webwml
136 # cvs sucks sufficiently that I prefer to run these commands by hand,
138 update = echo "skipping cvs update (too slow)"
139 status = echo "skipping cvs status (too ugly)"
140 skip = ! mylaptop || ! full