summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorSebastian Bauer <mail@sebastianbauer.info>2013-01-24 20:44:17 +0100
committerSebastian Bauer <mail@sebastianbauer.info>2013-01-25 05:24:21 +0100
commitc253056d2429ea0a6201be60921dbac69dbcc98a (patch)
tree937977952cb53a57ff773597e8b47dac9edcbd48 /src/commit.c
parent5425097f0368c43e72210c33b844cf7350843c37 (diff)
downloadlibgit2-c253056d2429ea0a6201be60921dbac69dbcc98a.tar.gz
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.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions