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
Feb 29, 2008, 13:21 UTC
Message-ID
<m3tzjrkie4.fsf@localhost.localdomain>
In-Reply-To
<f17812d70802290123raa099bag17a6f7b89de65dd4@mail.gmail.com>
"eric miao" <eric.y.miao@gmail.com> writes:
Show 8 quoted lines
> I kept a mirror of
> 
> http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> 
> by a crontab task fetching the updated commits at midnight everyday.
> 
> Yet I found the repository now grows to be 1.2G without checking out
> anything. The checked out working tree of this is about 1.5G.

Did you (re)packed this repository, running "git gc", or "git repack"? Currently git either downloads small packs, or loose objects; it needs to repack to make repository size smaller.

BTW. the largest git repository is 1.6G OpenOffice.org conversion,
with > 2G checkout, and some large binary files under version
control. Mozilla and GCC, other large repos, got under 0.5G IIRC.
So kernel should be quite smaller.
 
Show 5 quoted lines
> I tried "git prune" and "git repack" but it still remains so large. The
> trend of the kernel is still going to be enlarged. Thus I'm thinking
> of the possibility of a baseline feature. One can totally forget about
> the history before that baseline, and start the development there
> after.

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 ;-).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Karl HasselströmNext: Sam Vilain
Message 4 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.