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

Re: Will git have a baseline feature or something alike?

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 1, 2008, 15:41 UTC
Message-ID
<200803011641.49874.jnareb@gmail.com>
In-Reply-To
<f17812d70803010610o39cdf327x995c9e2e75a9edba@mail.gmail.com>
On Sat, 1 Mar 2008, eric miao wrote:
> On Fri, Feb 29, 2008 at 9:21 PM, Jakub Narebski <jnareb@gmail.com> wrote:
[could you please remove irrelevant parts of the reply? TIA]
Show 12 quoted lines
>> There is so called "shallow clone" feature, which allows to clone only
>> part of history. Currently it dupports only --depth, i.e. number of
>> commits from tips; it could I guess support providing tag as
>> delimiter. (You are welcome to implement it ;-).
>>
> 
> I haven't ever used the shallow clone, but it looks still a bit different
> from what I thought originally, say, if I download linux-2.6.24.tar.bz2
> from kernel.org, that's about 40MB and should be a fair amount.
> I then unpack and "git init", I expect it to recognize it's a v2.6.24,
> and I can thereafter use "git fetch" to fetch those commits after
> v2.6.24 from git.kernel.org. Is this possible?

No, this doesn't work and couldn't work. The tarfile contains only _contents_ of the working directory, and perhaps commit-id, but it doesn't contain even shred of history. Git has no information of where this content is in linux kernel git history.

You have to do "git clone --depth=1 <url>"; surrently there is no way to specify "git clone --from=<tag> <url>". I guess you can try to get info browsing gitweb, and fudge with grafts.

-- 
Jakub Narebski
Poland
Previous: Nguyen Thai Ngoc DuyNext: Eyvind Bernhardsen
Message 12 of 16 in “Will git have a baseline feature or something alike?”
  1. eric miaoFeb 29, 2008
  2. SeanFeb 29, 2008
  3. Karl HasselströmFeb 29, 2008
  4. Jakub NarebskiFeb 29, 2008
  5. Sam VilainMar 1, 2008
  6. Jakub NarebskiMar 1, 2008
  7. Sam VilainMar 1, 2008
  8. Jan HudecMar 2, 2008
  9. Martin LanghoffMar 2, 2008
  10. eric miaoMar 1, 2008
  11. Nguyen Thai Ngoc DuyMar 1, 2008
  12. Jakub NarebskiMar 1, 2008
  13. Eyvind BernhardsenMar 1, 2008
  14. Jakub NarebskiMar 1, 2008
  15. Shawn O. PearceMar 2, 2008
  16. David BrownMar 1, 2008

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.