repository.h: add comment and clarify repo_set_gitdir