Add support for branch in the patch id