git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Ben CliffordNext: Petr Baudis
Message 7 of 8 in “[RFC 1/2] Use remote information in .git/config”
  1. Johannes SchindelinNov 21, 2005
  2. Junio C HamanoNov 21, 2005
  3. Johannes SchindelinNov 21, 2005
  4. Junio C HamanoNov 22, 2005
  5. Johannes SchindelinNov 22, 2005
  6. Ben CliffordNov 24, 2005
  7. Johannes SchindelinNov 25, 2005
  8. Petr BaudisNov 27, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.