summaryrefslogtreecommitdiff
path: root/src/annotated_commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/annotated_commit.c')
-rw-r--r--src/annotated_commit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/annotated_commit.c b/src/annotated_commit.c
index 72ba80a22..1aa67dd52 100644
--- a/src/annotated_commit.c
+++ b/src/annotated_commit.c
@@ -196,6 +196,13 @@ const git_oid *git_annotated_commit_id(
return git_commit_id(annotated_commit->commit);
}
+const char *git_annotated_commit_ref(
+ const git_annotated_commit *annotated_commit)
+{
+ assert(annotated_commit);
+ return annotated_commit->ref_name;
+}
+
void git_annotated_commit_free(git_annotated_commit *annotated_commit)
{
if (annotated_commit == NULL)