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

Re: Find main branch

From
Jeff King <peff@peff.net>
Date
Jan 15, 2016, 18:02 UTC
Message-ID
<20160115180253.GA9590@sigill.intra.peff.net>
In-Reply-To
<xmqq1t9ikaxb.fsf@gitster.mtv.corp.google.com>
On Fri, Jan 15, 2016 at 09:30:24AM -0800, Junio C Hamano wrote:
Show 14 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > It would be nice if "git ls-remote" just had some way of printing the
> > capabilities.
> 
> I would agree that it would be nice to give an option to ls-remote
> to show which ones are symrefs pointing at what.  You are being more
> ambitious than that, but I am not sure I would agree it is a good
> idea.
> 
> Most normal capabilities have no value to ordinary end users, and
> the symref= thing is interesting for them only because there isn't
> such an option in ls-remote (hence "capabilities" thing could be
> used as a poor-man's substitute).

I thought it might be nice for any porcelain which tries to wrap `ls-remote`, make some decision based on the capabilities, and then invoke another plumbing command. But I guess that is probably slightly crazy, and nobody is doing it.

Something like `ls-remote --symrefs` probably would be a better place to start.

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 10 of 11 in “Find main branch”
  1. pedro rijoJan 14, 2016
  2. Stefan BellerJan 14, 2016
  3. Konstantin KhomoutovJan 14, 2016
  4. pedro rijoJan 14, 2016
  5. Konstantin KhomoutovJan 14, 2016
  6. Bryan TurnerJan 14, 2016
  7. Jeff KingJan 14, 2016
  8. pedro rijoJan 15, 2016
  9. Junio C HamanoJan 15, 2016
  10. Jeff KingJan 15, 2016
  11. Jeff KingJan 14, 2016

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.