From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH] Read configuration also from ~/.gitrc
Date: Mon, 29 May 2006 16:00:36 +0200 [thread overview]
Message-ID: <e5euq2$10t$1@sea.gmane.org> (raw)
In-Reply-To: Pine.LNX.4.63.0605290913330.8863@wbgn013.biozentrum.uni-wuerzburg.de
Johannes Schindelin wrote:
> But would this not break for the normal case? If you override one key in
> the repository's config, with this patch, repo-config will barf. The
> normal case is that you do not expect multiple values for the same key.
> Your patch reads both ~/.gitrc and $GIT_DIR/config, and if a key has a
> value in both (even if they are identical), repo-config will error out.
So the patch was to simplistic. Values from user's configuration file
~/.gitrc should be marked, to be overridden by $GIT_DIR/config per
repository configuration file.
> Further, storing a key will no longer work. This is an obscure side
> effect of this patch not caring about storing anything in ~/.gitrc: If you
> find the key section (or the key) in ~/.gitrc, the offset will be stored,
> _and used on $GIT_DIR/config_!
I think that storing a key should (unless new option --user-config or
--global is used) should store it in $GIT_DIR/config file; of course index
has to be found there, and if not found it key should be created. Per
configuration file offsets?
> I agree it is nice to have a global git configuration, but I have it: I
> use templates.
There are system-wide templates. git-init-db(1) doesn't show default
directory for _user_ templates...
And I guess that these are the issues why Junio C Hamano wrote:
> * The 'pu' branch, in addition, has these.
>
> - $HOME/.gitrc (Petr Baudis)
> Read configuration also from ~/.gitrc
>
> * I like this but it breaks the tests big time. Not "next"
> material yet, unfortunately.
--
Jakub Narebski
Warsaw, Poland
next prev parent reply other threads:[~2006-05-29 14:01 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-26 15:28 ~/.git/config ? Anand Kumria
2006-05-26 16:33 ` Timo Hirvonen
2006-05-26 16:37 ` Jakub Narebski
2006-05-26 16:38 ` Petr Baudis
2006-05-26 17:05 ` Timo Hirvonen
2006-05-26 17:11 ` Petr Baudis
2006-05-27 2:36 ` Pavel Roskin
2006-05-27 2:57 ` Petr Baudis
2006-05-27 3:20 ` Linus Torvalds
2006-05-27 3:36 ` Linus Torvalds
2006-05-27 4:43 ` Junio C Hamano
2006-05-27 3:40 ` Jakub Narebski
2006-05-27 9:11 ` Junio C Hamano
2006-05-27 12:52 ` Horst von Brand
2006-05-28 21:59 ` [PATCH] Support for configurable git command aliases Petr Baudis
2006-05-28 22:57 ` Jakub Narebski
2006-05-29 3:58 ` Jeff King
2006-05-29 2:01 ` Junio C Hamano
2006-05-29 8:02 ` Petr Baudis
2006-05-27 8:50 ` ~/.git/config ? Nikolai Weibull
2006-05-27 9:09 ` Timo Hirvonen
2006-05-26 17:38 ` Junio C Hamano
2006-05-28 22:26 ` [PATCH] Read configuration also from ~/.gitrc Petr Baudis
2006-05-29 7:20 ` Johannes Schindelin
2006-05-29 14:00 ` Jakub Narebski [this message]
[not found] <torvalds@osdl.org>
2003-08-09 5:40 ` Linux 2.6.0-test3 Linus Torvalds
2003-08-09 7:49 ` Linux 2.6.0-test3: USB still broken reg
2003-08-13 23:53 ` Greg KH
2003-08-09 14:53 ` [Bug 973] Re: Linux 2.6.0-test3: Presario laptop panic Thomas Molina
2003-08-09 13:52 ` Zwane Mwaikambo
2003-08-09 16:00 ` Linux 2.6.0-test3: logo patch Thomas Molina
2003-08-09 15:38 ` Russell King
2003-08-11 6:24 ` Martin Schlemmer
2003-08-11 17:25 ` James Simmons
2003-08-11 20:24 ` Martin Schlemmer
2003-08-09 16:28 ` ismail (cartman) donmez
2003-08-09 18:52 ` Andrew Morton
2003-08-12 17:36 ` James Simmons
2003-08-09 21:14 ` Linux 2.6.0-test3 Jacek Kawa
2003-08-09 21:27 ` Jacek Kawa
2003-08-10 10:40 ` Geert Uytterhoeven
2003-08-10 21:24 ` [patch] 2.6.0-test3: typo in hd.c Adrian Bunk
2003-08-11 23:07 ` Linux 2.6.0-test3 (compile statistics) John Cherry
2003-08-12 0:03 ` Mike Fedyk
2003-08-13 19:26 ` Adrian Bunk
2003-08-14 0:41 ` John Cherry
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='e5euq2$10t$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.