dir.c: provide clear_directory() for reclaiming dir_struct memory
commit270be8160493eb25ee43eb7db8dda2504343dc65
authorAdam Spiers <git@adamspiers.org>
Sun, 6 Jan 2013 16:58:05 +0000 (6 16:58 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Jan 2013 22:26:37 +0000 (6 14:26 -0800)
tree93d5642a17e8d182a1c9a22c02c62e3219416ae0
parentc04318e46aae79b8b8df059e2118519d83dfee12
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>
Documentation/technical/api-directory-listing.txt
dir.c
dir.h