summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-directory-listing.txt
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2013-01-06 16:58:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-01-06 22:26:37 (GMT)
commit270be8160493eb25ee43eb7db8dda2504343dc65 (patch)
tree93d5642a17e8d182a1c9a22c02c62e3219416ae0 /Documentation/technical/api-directory-listing.txt
parentc04318e46aae79b8b8df059e2118519d83dfee12 (diff)
downloadgit-270be8160493eb25ee43eb7db8dda2504343dc65.zip
git-270be8160493eb25ee43eb7db8dda2504343dc65.tar.gz
git-270be8160493eb25ee43eb7db8dda2504343dc65.tar.bz2
dir.c: provide clear_directory() for reclaiming dir_struct memory
By the end of a directory traversal, a dir_struct instance will typically contains pointers to various data structures on the heap. clear_directory() provides a convenient way to reclaim that memory. Signed-off-by: Adam Spiers <git@adamspiers.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-directory-listing.txt')
-rw-r--r--Documentation/technical/api-directory-listing.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/technical/api-directory-listing.txt b/Documentation/technical/api-directory-listing.txt
index fa9c8ae..fbceb62 100644
--- a/Documentation/technical/api-directory-listing.txt
+++ b/Documentation/technical/api-directory-listing.txt
@@ -81,4 +81,6 @@ marked. If you to exclude files, make sure you have loaded index first.
* Use `dir.entries[]`.
+* Call `free_directory()` when none of the contained elements are no longer in use.
+
(JC)