I'm wondering how to do git clone --depth HEAD
with BZR, because I don't need the whole branch history.
Asked
Active
Viewed 478 times
3

Joe Simpson
- 2,546
- 4
- 30
- 46
-
I wasn't aware that `git clone` had a `--HEAD` option. What version of `git` are you using? – larsks May 04 '12 at 19:31
-
Whoops I missed something. Thanks! – Joe Simpson May 04 '12 at 19:35
-
If I understand correctly, you just want to checkout the files and none of the history? The equivalent of an `svn export`? – Schwern May 04 '12 at 19:39
-
Yeah, I want to work on a project called Openshot which is in BZR, but I don't need the history – Joe Simpson May 04 '12 at 19:40
2 Answers
5
Bazaar supports lightweight checkouts with the --lightweight
switch.
bzr checkout --lightweight lp:openshot

Schwern
- 153,029
- 25
- 195
- 336
-
I'm trying to grab a remote repo and not export a local one. Sorry :( – Joe Simpson May 04 '12 at 19:44
-
2Though, in this particular project, that is unlikely to take much less to download. The checkout is 50 megs and the repository is 57. Because of the efficient way which systems like Git and Bazaar store changes, this is very often the case and it's not worth the hassle to do a lightweight checkout to save a little disk space. – Schwern May 04 '12 at 20:01