- branch repository name #!optional typeprocedure
Retrieves a reference to the branch of the given name from the repository. name should be a string naming a branch without a leading reference namespace such as "refs/heads/" or "refs/remotes". An error is signaled if no such branch exists.
A type symbol may be given, either local or remote, to specify what type of branch should be looked up; by default, local is used.