News for hackers. Stuff that matters.
Re:Abandon your DVCS and return to sanity by makmanalp on Tuesday March 03, 2015 @11:34AM (#9138564)
You can do a shallow clone in any reasonable versioning system: http://stackoverflow.com/questions/6941889/is-git-clone-dept...
Re:Abandon your DVCS and return to sanity by CHY872 on Tuesday March 03, 2015 @11:46AM (#9138676)
but 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.

Re:Abandon your DVCS and return to sanity by samastur on Tuesday March 03, 2015 @11:37AM (#9138592)
But then git blame or bisect don't really work anymore.
Re:Abandon your DVCS and return to sanity by IanCal on Tuesday March 03, 2015 @11:54AM (#9138741)
I'm not too sure what could be realistically done to implement offline bisect without getting the all the history you care about.
Re:Abandon your DVCS and return to sanity by ufo on Tuesday March 03, 2015 @07:08PM (#9141779)
One 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.
Re:Abandon your DVCS and return to sanity by IanCal on Wednesday March 04, 2015 @07:37AM (#9143819)
Querying the server rarely works when you're offline.
Re:Abandon your DVCS and return to sanity by Tobani on Tuesday March 03, 2015 @11:47AM (#9138685)
It may work well enough.