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

Re: Add lsremote command.

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 17, 2005, 14:03 UTC
Message-ID
<20050417140309.GF1487@pasky.ji.cz>
In-Reply-To
<200504162336.51937.elenstev@mesatop.com>

Dear diary, on Sun, Apr 17, 2005 at 07:36:51AM CEST, I got a letter where Steven Cole <elenstev@mesatop.com> told me that...

> This is a fairly trivial addition, but if users are adding remote repositories
> with git addremote, then those users should be able to list out the remote
> list without having to know the details of where the remotes file is kept.

Could you please send your patches inline? (Either in the body or with correct content-disposition header.)

You got the return values other way around and you are missing a copyright notice at the top; you should also mention that you take no parameters.

Please use -s instead of -e, since it is more appropriate in this case. Also, you should report the "no remotes" message to stderr. And always exit when you found that .git/remotes exists, not only if cat succeeds.

Kind regards,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Steven ColeNext: Steven Cole
Message 2 of 3 in “Add lsremote command.”
  1. Add lsremote command.Steven Cole, Apr 17, 2005
  2. Petr BaudisApr 17, 2005
  3. Steven ColeApr 17, 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.