Add support for branch/tag/rev options