<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 12, 2021 at 12:50 AM Bo Berglund via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 11 Aug 2021 22:22:54 +0200 (CEST), Michael Van Canneyt via fpc-pascal<br>
<<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
<br>
># Get sources<br>
>git clone <a href="https://gitlab.com/freepascal.org/fpc/source.git" rel="noreferrer" target="_blank">https://gitlab.com/freepascal.org/fpc/source.git</a> $FPCVER<br>
># switch to branch/tag<br>
>cd $FPCVER<br>
>git checkout $FPCTAG<br>
>cd ..<br>
<br>
How big a size is the git clone going to pull?<br>
<br>
By the looks of it I get the impression that the git clone will download every<br>
single tag/branch/commit etc ever done and then the git checkout activates the<br>
actual tagged file set?<br>
If this is correct then the size on disk will be too big.<br>
<br>
Now as I said I have not used git and for my day use cannot switch because we<br>
use properties of svn that are simply not available in git...<br></blockquote><div><br></div><div>To retrieve a specific branch without history (I think this is approximately equivalent to the svn co command) specify options --branch (to specify which branch to check out), --single-branch (to not pull in other branches) and --depth (to limit the history that git pulls in):</div><div><br></div><div>git clone --depth=1 --branch fixes_3_2 --single-branch <a href="https://gitlab.com/freepascal.org/fpc/source.git">https://gitlab.com/freepascal.org/fpc/source.git</a> fpc-fixes_3_2</div><div><br></div><div>This example downloads about 46 MiB of data, which expands to around 309 MiB on disk, of which 50 MiB is git information.<br></div></div></div>