-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
The rationale given is "thus reducing the overall repository size to those that need to clone the repository", but one of the old taglines for git is it's the "stupid content tracker", key word being content. Having multiple copies of the same file does not substantially change the size to be cloned:
mkdir separate
git init separate
cd separate
mkdir a b c
# This is the largest file in the repo at ~7M:
cp ../cartopy/docs/v0.15/examples/wmts_time_00_00.pdf a/
cp ../cartopy/docs/v0.15/examples/wmts_time_00_00.pdf b/
cp ../cartopy/docs/v0.15/examples/wmts_time_00_00.pdf c/
git add a b c
git commit -m 'Initialize'
git gc --aggressive
cd ../
mkdir symlinked
git init symlinked/
cd symlinked
mkdir a b c shared
cp ../cartopy/docs/v0.15/examples/wmts_time_00_00.pdf a/
cp ../cartopy/docs/v0.15/examples/wmts_time_00_00.pdf b/
cp ../cartopy/docs/v0.15/examples/wmts_time_00_00.pdf c/
../tools/symlink_common.py . --shared-dir shared
git add a/ b/ c/ shared/
git commit -m 'Initialize'
git gc --aggressive
cd ..This gives:
$ du -hsc */.git
7.3M separate/.git
7.3M symlinked/.git
Symlinking might be useful to reduce checkout size though, so maybe that's what it should say?
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status