bundler/bundler — pull request #2989 by isaiah (2014-04-20 19:10:33+00:00)
Title: Automatically switches branch when local override for git repository is given

With a big project that has quite a few git dependencies, sometimes it becomes very annoying to switch the branch manually.

Bundler will try to switch to the branch specified in Gemfile if it exists.

Enable this feature by
bundle config auto_switch_local_branch true