chiark / gitweb /
sh mode do not electric <<
[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     email=ijackson@chiark.greenend.org.uk
12     ;;
13 esac
14
15 cat <<END
16 [user]
17         email="$email"
18 [sendemail]
19         bcc = $email
20 END
21
22 case "$(hostname -f)" in
23 zealot)
24     cat <<END
25         smtpdomain = zealot.relativity.greenend.org.uk
26         smtpserver = tunnel.chiark.greenend.org.uk
27         smtpserverport = 25
28         envelopesender = $email
29         bcc = $email
30 [dgit-distro "debian"]
31         username = iwj
32         keyid = 0x48B50D39
33 END
34     ;;
35 esac
36
37 if [ "$cache" ]; then
38     cat <<END
39 [url "$cache/git://"]
40         insteadOf = git://
41 [url "$cache/git://"]
42         insteadOf = $cache/git://
43 [color]
44         diff = false
45         ui = false
46 END
47 fi