git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
To: git@vger.kernel.org
Cc: Petr Baudis <pasky@suse.cz>
Subject: Re: [RFC 2/2] Automatically transform .git/{branches,remotes} into .git/config
Date: Mon, 28 Nov 2005 16:03:54 +0100	[thread overview]
Message-ID: <200511281603.54433.Josef.Weidendorfer@gmx.de> (raw)
In-Reply-To: <20051128134808.GQ22159@pasky.or.cz>

On Monday 28 November 2005 14:48, Petr Baudis wrote:
> Dear diary, on Mon, Nov 28, 2005 at 01:59:04PM CET, I got a letter
> where Josef Weidendorfer <Josef.Weidendorfer@gmx.de> said that...
> > (2) project config (in .git/project.conf)
> 
> What are you going to keep in it? There isn't much of stuff which is not
> per-user or per-instance. I can't think of anything now, but there is no
> list of configuration variables to check yet.

Project global configurations could be:
- .git/info
- .git/hooks
- default for encoding of commit messages
- relationship of public project branches (perhaps access rights)
- project description, maintainers, public branch descriptions
- central repository URL
- ...

> (Upstream maintainer email is interesting, OTOH it alone doesn't seem to
> justify the mechanism by itself; also, the upstreams may be different
> based on where you cloned the project from, etc.)

Hmm.. this even could be seen as another level: origin specific

> > For (2), git-clone should copy some files, e.g. the .git/project.conf
> > or .git/info/exclude. But project config probably should be kept
> > up to date among all repositories for a project, i.e. it should be
> > version controlled itself, but independent from the project.
> > We could use a project config head .git/refs/projectconfig for this;
> > of course post-1.0 material.
> 
> If you still want per-project config, why should it be independent from
> the project? Actually, like you have .gitignore, having something like
> .gitconfig

That doesn't work well with configuration which should be global to the
whole history of the original project, e.g. .git/info/exclude, or maintainer
information.

> in project root would be by far the simplest - if you want 
> separate head, your merging and stuff gets quite more complicated, as
> well as actually branching the project config, etc.

Project configuration probably always should be up to date, so:
* always update when fetching/pulling project branches
* always push when pushing project branches

Josef

  reply	other threads:[~2005-11-28 15:04 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-21 13:56 [RFC 2/2] Automatically transform .git/{branches,remotes} into .git/config Johannes Schindelin
2005-11-21 15:44 ` Josef Weidendorfer
2005-11-21 15:57   ` Johannes Schindelin
2005-11-21 16:25     ` Josef Weidendorfer
2005-11-21 16:34     ` Andreas Ericsson
2005-11-21 22:26     ` Junio C Hamano
2005-11-27 12:59 ` Petr Baudis
2005-11-28  1:52   ` Johannes Schindelin
2005-11-28  6:22     ` Junio C Hamano
2005-11-28  8:43       ` Andreas Ericsson
2005-11-28  9:14         ` Junio C Hamano
2005-11-28 12:59         ` Josef Weidendorfer
2005-11-28 13:11           ` Andreas Ericsson
2005-11-28 14:32             ` Generic configuration plumbing (Was: Re: [RFC 2/2] Automatically transform...) Josef Weidendorfer
2005-11-28 15:26               ` Johannes Schindelin
2005-11-28 13:48           ` [RFC 2/2] Automatically transform .git/{branches,remotes} into .git/config Petr Baudis
2005-11-28 15:03             ` Josef Weidendorfer [this message]
2005-11-29  6:04           ` Junio C Hamano
2005-11-28 16:29       ` Johannes Schindelin
2005-11-28 13:59     ` Petr Baudis
2005-11-28 16:33       ` Johannes Schindelin

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=200511281603.54433.Josef.Weidendorfer@gmx.de \
    --to=josef.weidendorfer@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=pasky@suse.cz \
    /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).