From: Junio C Hamano <gitster@pobox.com>
To: "Santi Béjar" <sbejar@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] user.default: New config to prevent using the default values for user.*
Date: Wed, 05 Mar 2008 13:29:24 -0800 [thread overview]
Message-ID: <7vr6eolv0r.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 1204744684-2043-1-git-send-email-sbejar@gmail.com
Santi Béjar <sbejar@gmail.com> writes:
> +user.default::
> + If false the defaults values for user.email and user.name are not
> + used. Useful when you want a different email/name for each
> + repository, normally set in the global config file.
> +
Aren't there other configuration variables that you might want
to tweak per repository?
Perhaps you can make git-init run a post-init hook script by
default, and have ~/.gitconfig specify the location of it, and
have it do whatever custom settings to the per-repository
configuration file?
Wouldn't that be a more generally useful thing to do, instead of
adding special-purpose configuration variables like this?
If we go that alternate route, I would imagine that we would
need to add "--no-post-init" flag to git-init (and probably an
environment GIT_NO_POST_INIT) so that git-clone and others that
run git-init internally can disable the hook if they want to.
next prev parent reply other threads:[~2008-03-05 21:30 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 19:18 [PATCH] user.default: New config to prevent using the default values for user.* Santi Béjar
2008-03-05 19:54 ` Jon Loeliger
2008-03-05 20:36 ` Santi Béjar
2008-03-05 20:11 ` Johannes Schindelin
2008-03-05 20:21 ` Daniel Barkalow
2008-03-05 20:41 ` Santi Béjar
2008-03-05 20:44 ` Alex Riesen
2008-03-06 21:45 ` Santi Béjar
2008-03-07 16:41 ` Alex Riesen
2008-03-08 0:13 ` Santi Béjar
2008-03-08 1:24 ` Johannes Schindelin
2008-03-08 2:08 ` Junio C Hamano
2008-03-08 2:22 ` Johannes Schindelin
2008-03-05 21:01 ` Jakub Narebski
2008-03-05 22:35 ` Santi Béjar
2008-03-05 21:29 ` Junio C Hamano [this message]
2008-03-05 22:33 ` Santi Béjar
2008-03-05 22:53 ` Junio C Hamano
2008-03-05 23:23 ` Santi Béjar
2008-03-05 23:29 ` Junio C Hamano
2008-03-05 23:39 ` Santi Béjar
2008-03-06 0:29 ` Junio C Hamano
2008-03-06 8:08 ` Santi Béjar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vr6eolv0r.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=sbejar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).