4 ms·
Also worth noting that git is pretty efficient at cloning a bunch of subsequent commits, due to delta encoding. edit: looks like git doesn't implement fetching
by pushrax 6y ago
Also worth noting that git is pretty efficient at cloning a bunch of subsequent commits, due to delta encoding.
edit: looks like git doesn't implement fetching thin packs when populating a shallow clone. It will still avoid fetching unnecessary packs, so the efficiency is still high for most software repositories.
- senkora 6y agoDoes git do delta encoding during clones? I know it doesn’t use deltas for most things.
- pushrax 6y agoI am fairly sure it uses thin packs during a clone usually. Though I checked the docs at https://www.git-scm.com/docs/shallow https://www.git-scm.com/docs/shallow, and it says: > There are some unfinished ends of the whole shallow business: > - maybe we have to force non-thin packs when fetching into a shallow repo (ATM they are forced non-thin).