LWN.net Logo

Vernooij: Bazaar-NG: 7 years of hacking on a distributed version control system

Vernooij: Bazaar-NG: 7 years of hacking on a distributed version control system

Posted Dec 20, 2012 19:30 UTC (Thu) by dlang (✭ supporter ✭, #313)
In reply to: Vernooij: Bazaar-NG: 7 years of hacking on a distributed version control system by yarikoptic
Parent article: Vernooij: Bazaar-NG: 7 years of hacking on a distributed version control system

umm, One of us is misunderstanding something

doing a

git clone --depth 20 server:git/repo

doesn't give you only the files that have changed in the last 20 commits, it gives you ALL the files in the project, as they existed (changed or not) for the last 20 commits

so if you only care about what the files are NOW you can do "--depth 1", no need to know when it changed.

If you want the last 20 changes of a file, and that file hasn't changed for the last 1000 commits, then you really do want the full history, because the file may not have changed 20 times since it was created


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds