Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, "Michael S. Tsirkin" <mst@mellanox.co.il>
Subject: Re: [PATCH] add --remote option to git-clone.
Date: Mon, 05 Feb 2007 09:58:26 -0800	[thread overview]
Message-ID: <7vmz3smqpp.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: Pine.LNX.4.63.0702051245050.22628@wbgn013.biozentrum.uni-wuerzburg.de

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> Oh? Well, to me, "clone" meant something like the genetics thing, i.e. get 
> a copy of the repository. Since a "branch" is not the complete repository, 
> but only part of it, I would have expected "engraft" instead of "clone" 
> there.
>
> But I can learn! So (post-1.5.0, maybe?) I'd be perfectly d'accord with 
> something like this
>
> 	git clone git://.../git.git#html
>
> to mean "just fetch the branch html, and check it out".

I agree that the word "clone" to me sounds like "copy the whole
repo", so a single branch cloning feels it is something
different from "clone", but I do not think it means wholeness
must be the only mode of operation.

Except that I do not particularly think the URL fragment
notation is such a "cool" syntax.

>> I think the logic to decide where to point remotes/$origin/HEAD to 
>> should be moved to "git-remote add -m" when we eventually rewrite 
>> "git-clone" to use "git-remote add -f".  And while we would do so, we 
>> can make a trivial extension to fetch-pack protocol to carry the HEAD 
>> symref information.  All will be good once that happens.
>
> Would you like this as a multi_ack-like extension?
>
> But then how to teach the dumb protocols in a backwards-compatible 
> fashion?

I am not talking about enhancing ls-remote output nor info/refs
file format.  I do not think we need to do anything special to
support it in backwards compatible way.

Look at what dumb protocols do in git-clone.  http already knows
where HEAD points at when it fetches HEAD with curl.  I do not
particularly care about rsync, but I suspect it can be handled
the same way.

  reply	other threads:[~2007-02-05 17:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 22:01 [PATCH] add --remote option to git-clone Michael S. Tsirkin
2007-02-01 22:06 ` J. Bruce Fields
2007-02-01 22:14   ` Shawn O. Pearce
2007-02-01 23:01   ` Michael S. Tsirkin
2007-02-01 23:42   ` Yann Dirson
2007-02-01 23:29 ` Johannes Schindelin
2007-02-01 23:31   ` Shawn O. Pearce
2007-02-01 23:47   ` Michael S. Tsirkin
2007-02-01 23:53     ` Johannes Schindelin
2007-02-02  1:25       ` Junio C Hamano
2007-02-02 10:48         ` Johannes Schindelin
2007-02-03  3:00           ` Junio C Hamano
2007-02-03  9:06             ` Jakub Narebski
2007-02-03  9:27               ` Junio C Hamano
2007-02-05 11:51             ` Johannes Schindelin
2007-02-05 17:58               ` Junio C Hamano [this message]
2007-02-05 18:43                 ` Linus Torvalds
2007-02-05 18:55                   ` Michael S. Tsirkin
2007-02-05 19:34                   ` Shawn O. Pearce
2007-02-05 18:48                 ` Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vmz3smqpp.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=mst@mellanox.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox