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

Re: [RFC] git-remote

From
Junio C Hamano <junkio@cox.net>
Date
Jan 6, 2007, 01:59 UTC
Message-ID
<7vvejkap9j.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<87ac0xgp12.wl%cworth@cworth.org>
Carl Worth <cworth@cworth.org> writes:
Show 11 quoted lines
> On Fri, 5 Jan 2007 20:53:22 +0100, "=?ISO-8859-1?Q?Santi_B=E9jar?=" wrote:
>> I was talking about the default name, so you could do:
>>
>> $ git clone\
>> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>> $ cd linux-2.6
>> $ git remote add \
>> git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-2.6.git
>> $ git remote show libata-2.6
>
> Yes.
No.  Because...
Show 11 quoted lines
> I'd go one further and say that it'd be really nice if git-clone could
> be seen as equivalent, (and basically equivalent internally), to a
> simple sequence of steps that could be performed manually. Something
> like:
>
> 	name=$(basename $url)
> 	mkdir $name
> 	cd $name
> 	git init-db
> 	git remote add $url
> 	git pull $name

you could say "git remote add $name $url" here, having computed $name already.

But you guessed what I was driving at right ;-).
Previous: Carl WorthNext: Carl Worth
Message 10 of 16 in “[RFC] git-remote”
  1. Junio C HamanoJan 3, 2007
  2. Jakub NarebskiJan 3, 2007
  3. Shawn O. PearceJan 5, 2007
  4. Junio C HamanoJan 5, 2007
  5. Shawn O. PearceJan 5, 2007
  6. Santi BéjarJan 5, 2007
  7. Johannes SchindelinJan 5, 2007
  8. Santi BéjarJan 5, 2007
  9. Carl WorthJan 5, 2007
  10. Junio C HamanoJan 6, 2007
  11. Carl WorthJan 8, 2007
  12. J. Bruce FieldsJan 9, 2007
  13. Junio C HamanoJan 9, 2007
  14. Junio C HamanoJan 9, 2007
  15. Andreas EricssonJan 9, 2007
  16. J. Bruce FieldsJan 10, 2007

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.