At the moment there's some inconsistencies with the branching api. Some of it is implicitly using whatever the current branch is, some is using an explicit branch, like this api. We need to come up with a better api that makes this all make more sense. But I think that can wait for a future PR.