Re: [RFC 1/2] Use remote information in .git/config
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 25, 2005, 01:08 UTC
- Message-ID
- <Pine.LNX.4.63.0511250208110.28437@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <41D1FCC0-E031-48FB-82A2-6CFDA2E03AC0@hawaga.org.uk>
Hi,
On Fri, 25 Nov 2005, Ben Clifford wrote:
Show 12 quoted lines
> On 22 Nov 2005, at 05:29, Junio C Hamano wrote: > > > Personally I do not mind moving remotes/branches information > > there, except that I suspect the git-config-set interface makes > > it cumbersome to (1) find out what remotes I defined (i.e. an > > equivalent of "ls .git/remotes") > > (1) is useful to be able to do in a very lightweight way when doing tab > completion on remotes. Having heads, tags, remotes in nicely named separate > files makes that pretty straightforward; I don't know if using a git-config- > accessor would make this noticeably worse, though, as I haven't tried anything > out there yet.
git-var -l | sed -n "s/^remote\.\([A-Za-z0-9]*\)\.url=.*$/\1/p"
Hth, Dscho