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

Feature Request git clone shallow-include

From
JEJoe Enzminger <joe.enzminger@exactasystems.com>
Date
Feb 20, 2019, 00:05 UTC
Message-ID
<CAApa7v-F7Y_WR11V-3jc-R4Y1qSv5PPof6GWvJuF_XMeTcC2zw@mail.gmail.com>

Currently, git clone supports shallow-exclude=<tag-name>. The client will clone up to, but not including, the commit with the tag.

It would be useful to have the ability to include the commit with the tag. The suggestion would be to add a "shallow-include" options to clone to support this behavior.

I have tried to use shallow-exclude with a follow on git fetch --deepen=1, but it always returns "fatal: error in object; unshallow <sha1>"

Next: Duy Nguyen
Message 1 of 6 in “Feature Request git clone shallow-include”
  1. Joe EnzmingerFeb 20, 2019
  2. Duy NguyenFeb 20, 2019
  3. Joe EnzmingerFeb 20, 2019
  4. Duy NguyenFeb 21, 2019
  5. Joe EnzmingerMar 29, 2019
  6. Duy NguyenMar 30, 2019

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.