diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-01 22:15:11 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-01 22:15:11 +0200 |
commit | 10940736887e279583e6b14d7e25de5db73768e1 (patch) | |
tree | 0e28e060fd4e4bafe58a06eaaa915612d6524ec4 /tests/diff/binary.c | |
parent | be5fda75879f7ed89c7a72adc257872d1ea13803 (diff) | |
download | libgit2-10940736887e279583e6b14d7e25de5db73768e1.tar.gz |
clone: fall back to copying when linking does not workcmn/link-fallback
We use heuristics to make a decent guess at when we can save time and
space by linking object files during a clone. Unfortunately checking the
device id isn't enough, as those would be the same during e.g. a bind-mount,
but the OS still does not allow us to link between mounts of the same
filesystem.
If we fail to perform the links, fall back to copying the contents into
a new file as a last attempt.
Diffstat (limited to 'tests/diff/binary.c')
0 files changed, 0 insertions, 0 deletions