summaryrefslogtreecommitdiff
path: root/include/git2/common.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-10-21 09:52:32 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-10-21 13:14:47 +0100
commit305e801acb2b13dca4e08ad00c638c22337c25bf (patch)
treebc5987b5534181b4c70756436ac2a779527a0398 /include/git2/common.h
parent671b2446b7805089cbc9dad9db216d13938b1393 (diff)
downloadlibgit2-305e801acb2b13dca4e08ad00c638c22337c25bf.tar.gz
util: allow callers to reset custom allocators
Provide a utility to reset custom allocators back to their default. This is particularly useful for testing.
Diffstat (limited to 'include/git2/common.h')
-rw-r--r--include/git2/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index a14e0961e..152e23aae 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -364,7 +364,8 @@ typedef enum {
*
* > Set the memory allocator to a different memory allocator. This
* > allocator will then be used to make all memory allocations for
- * > libgit2 operations.
+ * > libgit2 operations. If the given `allocator` is NULL, then the
+ * > system default will be restored.
*
* opts(GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY, int enabled)
*