chiark / gitweb /
7e874d2f2ec960ad416c5d3446b9ca85cc39b0d3
[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 if [ "$cache" ]; then
23     cat <<END
24 [url "$cache/git://"]
25         insteadOf = git://
26 [url "$cache/git://"]
27         insteadOf = $cache/git://
28 [color]
29         diff = false
30         ui = false
31 END
32 fi