Added git_branch_name().
This is a convenience function to get the branch name of a given ref. The returned branch name is compatible with the name that can be supplied e.g. to git_branch_lookup(). That is, the prefixes "refs/heads" or "refs/remotes" are omitted. Also added a new test for testing the new function.
Showing
tests-clar/refs/branches/name.c
0 → 100644
Please
register
or
sign in
to comment