You can clone with
Add support for git branches.
Two possible solutions:
a) ability to specify a branch to generate the API from
b) generate api for all branches (possibly not as default option?)
Actually option a) is already internally supported, but configurable only in DB. I will think about it.
What are the use cases you've got in mind? Any project where is it needed?
For example release branches - each release has its own branch (i.e. Doctrine 2 ORM uses this style - see branches 2.0.x, 2.1.x and 2.2).
Another options might be:
c) generate API for a tag - actually, it might be more interesting than API for branches :)
d) generate API for a specific commit (rare)
+1 for this feature request. Look at symfony2 docs. The ability to select your branch from a drop down box is very nice to have!