From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH 3/3] config: add core.sharedconfig
Date: Thu, 9 Dec 2010 12:19:24 -0600 [thread overview]
Message-ID: <20101209181924.GD5974@burratino> (raw)
In-Reply-To: <7vwrnig6gr.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> I originally liked what the first two tried to do, but think about the use
> case. How would this whole thing work?
>
> - The user clones from the project to get a repository with a working
> tree;
>
> - The user somehow learns that s/he can run one command to get
> project-wide preference of the project:
>
> $ git config core.sharedconfig refs/remotes/origin/config:git.config
>
> - Everything hopefully should work the way project wishes in that blob,
> unless the end user later overrides them by adding different settings
> to .git/config.
>
> How is that different from:
>
> - The user clones from the project to get a repository with a working
> tree;
>
> - The user somehow learns that s/he can run one command to get
> project-wide preference of the project:
>
> $ ./setup-project-preference.sh
>
> Typically, such a ./setup-project-preference.sh script would only
> consist of a series of "git config $foo $bar", so any user who can say
> "git config core.sharedconfig $foo" should be able to use it as well.
Wouldn't this ./setup-project-preference.sh have to set up a post-fetch hook
to update the configuration when the project's preferences change?
next prev parent reply other threads:[~2010-12-09 18:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 15:09 [RFC/WIP 0/3] Shared config Nguyễn Thái Ngọc Duy
2010-12-09 15:09 ` [PATCH 1/3] config: read full file content before parsing Nguyễn Thái Ngọc Duy
2010-12-09 15:09 ` [PATCH 2/3] config: add git_config_from_sha1() to read from a blob Nguyễn Thái Ngọc Duy
2010-12-09 15:58 ` Thiago Farina
2010-12-09 17:02 ` Jonathan Nieder
2010-12-09 15:09 ` [PATCH 3/3] config: add core.sharedconfig Nguyễn Thái Ngọc Duy
2010-12-09 16:00 ` Thiago Farina
2010-12-10 1:53 ` Nguyen Thai Ngoc Duy
2010-12-09 18:13 ` Junio C Hamano
2010-12-09 18:19 ` Jonathan Nieder [this message]
2010-12-10 1:29 ` Nguyen Thai Ngoc Duy
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101209181924.GD5974@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@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.
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 NNTP newsgroup(s).