aboutsummaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-07-18 14:35:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-07-18 14:35:05 +1200
commit6c9b500b66e232de19d7b91563fd741bea44ad70 (patch)
tree2f22a7060475703e7383d0e8cc453e12e514bd27 /git
parent223932aca6c35838a9baa9af8e4793f5f3199a01 (diff)
downloaddotfiles-6c9b500b66e232de19d7b91563fd741bea44ad70.tar.gz
dotfiles-6c9b500b66e232de19d7b91563fd741bea44ad70.zip
Remove user section from gitconfig, explain why
Diffstat (limited to 'git')
-rw-r--r--git/gitconfig17
1 files changed, 12 insertions, 5 deletions
diff --git a/git/gitconfig b/git/gitconfig
index b969f865..1a6f90ad 100644
--- a/git/gitconfig
+++ b/git/gitconfig
@@ -1,8 +1,15 @@
-[user]
- name = Tom Ryder
- email = tom@sanctum.geek.nz
- signingkey = 77BB8872
-
+#
+# The user section is intentionally left undefined here, because the name and
+# email I want to use for commits varies between contexts and machines (most
+# notably when I'm on a work machine). I therefore use an un-versioned script
+# in ~/.profile.d to do this that looks something like the following:
+#
+# GIT_AUTHOR_NAME='Tom Ryder'
+# GIT_AUTHOR_EMAIL='tom@sanctum.geek.nz'
+# GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
+# GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
+# export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL
+#
[advice]
statusHints = false