Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Does git do delta encoding during clones? I know it doesn’t use deltas for most things.


I am fairly sure it uses thin packs during a clone usually. Though I checked the docs at 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: