chiark / gitweb /
zealot git cache
[ian-dotfiles.git] / templates / gitconfig.in
1 #!/bin/bash
2 set -e
3 . infra/template
4
5 case "$(hostname -f)" in
6 *.xensource.com)
7     email="ian.jackson@eu.citrix.com"
8     cache=git://git-cache.xs.citrite.net:9419
9     ;;
10 *)
11     cache=git://localhost:9419
12     email=ijackson@chiark.greenend.org.uk
13     ;;
14 esac
15
16 cat <<END
17 [user]
18         name = Ian Jackson
19         email = $email
20 [sendemail]
21         bcc = $email
22 END
23
24 case "$(hostname)" in
25 zealot)
26     cat <<END
27         smtpdomain = zealot.relativity.greenend.org.uk
28         smtpserver = tunnel.chiark.greenend.org.uk
29         smtpserverport = 25
30         envelopesender = $email
31         bcc = $email
32 [dgit-distro "debian"]
33         username = iwj
34         keyid = 0x48B50D39
35 [url "git://git.kernel.org/"]
36         insteadOf = git://git.kernel.org/
37 [url "git://xenbits.xen.org/linux-pvops.git"]
38         insteadOf = git://xenbits.xen.org/linux-pvops.git
39 END
40     ;;
41 esac
42
43 if [ "$cache" ]; then
44     cat <<END
45 [url "$cache/git://"]
46         insteadOf = git://
47 [url "$cache/git://"]
48         insteadOf = $cache/git://
49 END
50 fi
51
52 cat <<END
53 [color]
54         diff = false
55         ui = false
56 END