diff options
author | Sebastian Bauer <mail@sebastianbauer.info> | 2013-01-24 20:44:17 +0100 |
---|---|---|
committer | Sebastian Bauer <mail@sebastianbauer.info> | 2013-01-25 05:24:21 +0100 |
commit | c253056d2429ea0a6201be60921dbac69dbcc98a (patch) | |
tree | 937977952cb53a57ff773597e8b47dac9edcbd48 /src/commit.c | |
parent | 5425097f0368c43e72210c33b844cf7350843c37 (diff) | |
download | libgit2-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