Re: [RFC] git-remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

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

I haven't played with the new git-remote stuff at all yet, but the
rest of the above does work already, (but for a "warning: no common
commits" message). The only thing missing compared to git-clone is the
remotes configuration. So if the new git-remote can provide behavior
equivalent to what git clone provides, that would be excellent.

If for one have often wanted the ability to easily add a second remote
as if from git-clone.

-Carl

Attachment: pgpENvqYzrVp9.pgp
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]