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

Re: [PATCH v2] ls-remote: print URL when no repo is specified

From
Junio C Hamano <gitster@pobox.com>
Date
May 20, 2010, 13:27 UTC
Message-ID
<7v632i8zzy.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100515162002.GA2592@progeny.tock>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 16 quoted lines
> Tay Ray Chuan wrote:
>> On Sat, May 15, 2010 at 12:17 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>
>>> I think I see what you are saying, and for scripts, that really would
>>> be the most useful thing.  Then the script could use something like
>>>
>>>  if test -z "$remote"
>>>  then
>>>        remote=$(git branch --get-remote --current)
>>>  fi
>>>  git ls-remote "$remote"
>>
>> Just curious - when did git-branch learn "--get-remote"? Or "--current"?
>
> It didn’t.  I was just saying that it should (or we should provide some
> commands to that effect).  What do you think?
I think you said what I meant to say much more clearly.  Thanks.
Previous: Jonathan NiederNext: Geert Bosch
Message 9 of 12 in “ls-remote: print URL when no repo is specified”
  1. ls-remote: print URL when no repo is specifiedTay Ray Chuan, May 9, 2010
  2. Jonathan NiederMay 9, 2010
  3. ls-remote: print URL when no repo is specifiedTay Ray Chuan, May 11, 2010
  4. Junio C HamanoMay 12, 2010
  5. Tay Ray ChuanMay 14, 2010
  6. Jonathan NiederMay 14, 2010
  7. Tay Ray ChuanMay 15, 2010
  8. Jonathan NiederMay 15, 2010
  9. Junio C HamanoMay 20, 2010
  10. Geert BoschMay 16, 2010
  11. Sverre RabbelierMay 16, 2010
  12. Geert BoschMay 16, 2010

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.