interpret_branch_name: move docstring to header file