summaryrefslogtreecommitdiff
path: root/Documentation/git-push.txt
diff options
context:
space:
mode:
authorLibravatar Dan Aloni <alonid@gmail.com>2016-02-06 08:23:36 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-08 11:06:28 -0800
commit4d5c2956969a6690db2bbb2f3ff40459c09d7646 (patch)
tree947e1240cdd91641779bd739abd626954c11f4fa /Documentation/git-push.txt
parentfmt_ident: refactor strictness checks (diff)
downloadtgif-4d5c2956969a6690db2bbb2f3ff40459c09d7646.tar.xz
ident: add user.useConfigOnly boolean for when ident shouldn't be guessed
It used to be that: git config --global user.email "(none)" was a viable way for people to force themselves to set user.email in each repository. This was helpful for people with more than one email address, targeting different email addresses for different clones, as it barred git from creating a commit unless the user.email config was set in the per-repo config to the correct email address. A recent change, 19ce497c (ident: keep a flag for bogus default_email, 2015-12-10), however, declared that an explicitly configured user.email is not bogus, no matter what its value is, so this hack no longer works. Provide the same functionality by adding a new configuration variable user.useConfigOnly; when this variable is set, the user must explicitly set user.email configuration. Signed-off-by: Junio C Hamano <gitster@pobox.com> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Dan Aloni <alonid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-push.txt')
0 files changed, 0 insertions, 0 deletions