Maybe would this function deserve some documentation...

You can peek at `git_branch_tracking__name()` for some inspiration.