Re: [PATCH 1/3] fetch: add --allow-local option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 19, 2013, 06:10 UTC
- Message-ID
- <7vip2f1ovd.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <E74470E4201142788D36127322130401@PhilipOakley>
"Philip Oakley" <philipoakley@iee.org> writes:
Show 16 quoted lines
> From: "Junio C Hamano" <gitster@pobox.com> > Sent: Friday, May 17, 2013 7:30 PM > Subject: Re: [PATCH 1/3] fetch: add --allow-local option > > [...] > >> So when "the user" is running "git fetch" on "mywork" branch that >> happens to be forked from a local "master", i.e. her configuration >> is set as >> >> [branch "mywork"] >> remote = . >> merge = refs/heads/master >> > > Was the '.' example illustrative rather than exact.
It is exactly spelled like so. Just like '.' in the filesystem refers to our current directory, a dot-repository used there refers to our local repository. "Git is distributed and no repository is special" principle extends to our own local repository in that you can use it just like you can use anybody else's repository as the source of fetch or the destination of push.