Re: [PATCH 2/2] repo-config: learn the flag "--no-local"
- From
Sean <seanlkml@sympatico.ca>
- Date
- Jun 8, 2006, 16:36 UTC
- Message-ID
- <BAYC1-PASMTP04DDBAA584B31A4B0F31DCAE8B0@CEZ.ICE>
- In-Reply-To
- <7v1wtzaa26.fsf@assigned-by-dhcp.cox.net>
On Thu, 08 Jun 2006 09:25:53 -0700 Junio C Hamano <junkio@cox.net> wrote:
Show 8 quoted lines
> The wording "--no-local" means you are looking at things > relative to a particular repository. I.e. some configuration > variables come from repository-local file, and others from > somewhere else. But I do not think that somewhere else is > "global". We are reading from $HOME, which is different > depending on who is interacting with that same repository. So I > would probably call the other one "--user" or something if I > were force to pick name.
--user or --home makes a lot of sense. Alternatively you could just be explicit: --config=~ or --config=/etc/gitconfig where /.gitconfig is automatically appended to the path if it ends in a directory name.
Sean