5 ms·
You can do a shallow clone in any reasonable versioning system: http://stackoverflow.com/questions/6941889/is-git-clone-depth-1-shallow-clone-more-useful-than-i
by makmanalp 12y ago
You can do a shallow clone in any reasonable versioning system: http://stackoverflow.com/questions/6941889/is-git-clone-depth-1-shallow-clone-more-useful-than-it-makes-out http://stackoverflow.com/questions/6941889/is-git-clone-dept...
- samastur 12y agoBut then git blame or bisect don't really work anymore.
- Tobani 12y agoIt may work well enough.
- IanCal 12y agoI'm not too sure what could be realistically done to implement offline bisect without getting the all the history you care about.
- ufo 12y agoOne approach would be to query the server for these operations. And unlike what happens in Git, where blame is an O(N) operation, a centralized server is free to spend some extra storage to add some caches or indexes to make these searches faster.
- IanCal 12y agoQuerying the server rarely works when you're offline.
- CHY872 12y agobut then you lose the ability to git bisect, blame etc, which is the root comment's advantage of doing git. I've worked on a project where the git repository was man gigabytes - because at some point someone decided to put some binary files in the repository, which periodically got updated - now years on the repository's about 10GB, and you can't really delete the stuff clogging it up without rewriting history from years prior and making the 200 devs life hell. Importantly, you do need all that history, because there are commits from the same time that are relevant.