git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-clone --how-much-disk-space-will-this-cost-me? [--depth n]
@ 2008-12-15 23:53 jidanni
  2008-12-16  0:22 ` Jean-Luc Herren
  2008-12-16  0:43 ` Jeff King
  0 siblings, 2 replies; 12+ messages in thread
From: jidanni @ 2008-12-15 23:53 UTC (permalink / raw)
  To: git

The git-clone manpage should mention how to determine how much disk
space will be used.

You see we beginners (who haven't learned git yet, so no patches
forthcoming, thank you) are often told "Just do git-clone
git://git.example.org/bla/ to get started!". Being smart, we read up on
--depth 1 to limit potential disk occupation, but we still have no
idea of how much disk space we will need. We cant just use HEAD(1)
because this is not HTTP.

Therefore the git-clone man page, one of the main entry points for the
beginner, should say how to determine how much disk space we will need
for git-clone or git-clone --depth 1 etc.

And don't tell us to just figure it out from the progress messages
after the download begins, and hit ^C if we don't like it.

Let's take a look at those messages while were at it,
$ git-clone --depth 1 git://git.sv.gnu.org/coreutils/
Initialized empty Git repository in /usr/local/src/jidanni/coreutils/.git/
remote: Counting objects: 26240, done.
remote: Compressing objects: 100% (14001/14001), done.
remote: Total 26240 (delta 21577), reused 15354 (delta 12095)
Receiving objects: 100% (26240/26240), 15.76 MiB | 26 KiB/s, done.
Resolving deltas: 100% (21577/21577), done.
$ du -sh
27M  .
Nope, nowhere does it directly say "You Holmes, are in for 27
Megabytes (on your piddly modem)". There obviously is math involved to
figure it out... math!

Also add examples of how one first probes a remote tree one has been
told about, determines what parts of it he might want, and then
finally git-clones just those parts.

Also document what --depth 0 or even -1 will do.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-12-17 16:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 23:53 git-clone --how-much-disk-space-will-this-cost-me? [--depth n] jidanni
2008-12-16  0:22 ` Jean-Luc Herren
2008-12-16  0:37   ` jidanni
2008-12-16  2:07     ` Jean-Luc Herren
2008-12-16  5:45       ` Nicolas Pitre
2008-12-17 15:44         ` Shawn O. Pearce
2008-12-17 16:15           ` Nicolas Pitre
2008-12-17 16:21             ` Shawn O. Pearce
2008-12-17 16:46               ` Nicolas Pitre
2008-12-17 16:48                 ` Shawn O. Pearce
2008-12-17 16:56                   ` Nicolas Pitre
2008-12-16  0:43 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).