Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can I use repo to sync by date? (possible in git)

For example, I want to download the source as of March 1 at 3pm. I need a way to grab a specific base of CyanogenMod9 source. It would be nice to use a tag or commit ID, but the source is organized in several sub-repositories that don't have common tags. I'm thinking I could checkout by date. Suggestions?

share|improve this question

1 Answer 1

Looks like I'll have to use repo forall. This requires sync'ing everything first (can't checkout older code until repository is fully downloaded).

repo forall -c 'git checkout `git rev-list --all -n1 --before="2012-03-01 15:00"`'
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.