Re: [PATCH v2] builtin/clone: teach git-clone(1) the --revision= option

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

 



On Mon, Dec 02, 2024 at 03:08:35PM +0100, Patrick Steinhardt wrote:

> > Add option `--revision` to git-clone(1). This option accepts a fully
> > qualified reference, or a raw commit hash. This enables the user to
> > clone and checkout any revision they want. `--revision` can be used in
> 
> s/checkout/check out/
> 
> Does this have to be a raw commit hash, or do we also accept an
> arbitrary committish like a tag that peels down to a commit?

I don't think anything except a raw hash will be possible without a
protocol extension. upload-pack accepts only a full object id on its
"want" lines, so the client needs to either start with one, or start
with a refname that it can convert to one from the advertisement.

(There's also the "want-ref" extension, but it only takes full
refnames).

-Peff




[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]

  Powered by Linux