summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/git2/oid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 1cfd4e5e2..482e22e3d 100644
--- a/include/git2/oid.h
+++ b/include/git2/oid.h
@@ -118,6 +118,9 @@ GIT_EXTERN(void) git_oid_pathfmt(char *out, const git_oid *id);
/**
* Format a git_oid into a newly allocated c-string.
*
+ * It is not possible for an external user to call the appropriate
+ * freeing function. It is part of the public API as a debug aid.
+ *
* @param id the oid structure to format
* @return the c-string; NULL if memory is exhausted. Caller must
* deallocate the string with git__free().