From: Jeff King Date: Fri, 15 Jan 2016 18:02:53 GMT Subject: Re: Find main branch Message-ID: <20160115180253.GA9590@sigill.intra.peff.net> In-Reply-To: On Fri, Jan 15, 2016 at 09:30:24AM -0800, Junio C Hamano wrote: > Jeff King 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