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

Re: basics... when reading docs doesn't help

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Mar 29, 2007, 21:46 UTC
Message-ID
<20070329214654.GI6143@fieldses.org>
In-Reply-To
<7vabxv3fnx.fsf@assigned-by-dhcp.cox.net>
On Thu, Mar 29, 2007 at 02:26:10PM -0700, Junio C Hamano wrote:
Show 20 quoted lines
> "J. Bruce Fields" <bfields@fieldses.org> writes:
> 
> > On Thu, Mar 29, 2007 at 10:50:51PM +0200, Guennadi Liakhovetski wrote:
> >> Now, my copy of Linus' tree was ATM 1.5GiB big...  Slowly it's getting
> >> scary.
> >
> > On my laptop:
> >
> > [bfields@pad linux]$ du -hs .
> > 1.5G    .
> > [bfields@pad linux]$ du -hs .git
> > 334M    .git
> >
> > So it's mostly the checked out working directory and build
> > stuff.
> >
> > If you really need a ton of build trees then you might just want to do
> > cp -al or something.
> 
> How about suggesting "clone -l -s"?

If you really want to share as much as possible, then I guess you want to share the working trees too, since (as evidenced above), they're at least as large as the compressed history.

Though actually on a second look, clone -l -s produces something that's only 377M. I hadn't realized how much space the build output takes up. So judging from du the 1.5G Guennadi Liakhovetski mentions above seems to break down into something like:

	330M .git
	380M working tree
	750M build output
--b.
Previous: Junio C HamanoNext: Guennadi Liakhovetski
Message 4 of 18 in “basics... when reading docs doesn't help”
  1. Guennadi LiakhovetskiMar 29, 2007
  2. J. Bruce FieldsMar 29, 2007
  3. Junio C HamanoMar 29, 2007
  4. J. Bruce FieldsMar 29, 2007
  5. Guennadi LiakhovetskiMar 29, 2007
  6. Linus TorvaldsMar 29, 2007
  7. Guennadi LiakhovetskiMar 30, 2007
  8. Linus TorvaldsMar 30, 2007
  9. Guennadi LiakhovetskiMar 30, 2007
  10. Linus TorvaldsMar 30, 2007
  11. Theodore TsoMar 30, 2007
  12. Junio C HamanoMar 30, 2007
  13. Guennadi LiakhovetskiMar 30, 2007
  14. Theodore TsoMar 30, 2007
  15. J. Bruce FieldsMar 30, 2007
  16. Andreas HerrmannMar 30, 2007
  17. Guennadi LiakhovetskiMar 30, 2007
  18. Matthieu MoyMar 29, 2007

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.