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

Re: git clone tag shallow

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 18, 2013, 06:49 UTC
Message-ID
<CACsJy8Dso-g7foyJhpY20DNrY11PA8ZZUmP6JXxsiJ_Ggbt_KA@mail.gmail.com>
In-Reply-To
<CAByu6UWEF48XvTmRnVDb2Bqxy1dNdUSXpTuy804215Vgs_KJxw@mail.gmail.com>

On Mon, Feb 18, 2013 at 2:13 AM, Thibault Kruse <tibokruse@googlemail.com> wrote:

Show 5 quoted lines
> Hi all,
>
> I notice that using git 1.8.3, I can call
> git clone repo1 repo2 --branch tagname
> with a tag, not a branch. Is this going to be a stable and documented feature?

There is a test for --branch=tag in t5601, so I say it's supported. If the document is not clear, patches are welcome.

-- 
Duy
Previous: Thibault KruseNext: Thibault Kruse
Message 2 of 6 in “git clone tag shallow”
  1. Thibault KruseFeb 17, 2013
  2. Duy NguyenFeb 18, 2013
  3. Thibault KruseFeb 18, 2013
  4. Junio C HamanoFeb 18, 2013
  5. Thibault KruseFeb 18, 2013
  6. Junio C HamanoFeb 18, 2013

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.