summaryrefslogtreecommitdiff
path: root/notes.h
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2009-10-09 12:22:06 +0200
committerJunio C Hamano <gitster@pobox.com>2009-10-19 19:00:24 -0700
commit27d57564102a98950bf4398daeeb14a15154478f (patch)
tree15fe36c21f7d7efa2addd96eebd7394b28f2bf5b /notes.h
parent8b208f0213ed349ecb2ab8f7bb6c5072f8011a70 (diff)
downloadgit-27d57564102a98950bf4398daeeb14a15154478f.tar.gz
Teach notes code to free its internal data structures on request
There's no need to be rude to memory-concious callers... This patch has been improved by the following contributions: - Junio C Hamano: avoid old-style declaration Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
-rw-r--r--notes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notes.h b/notes.h
index 7f3eed4384..a1421e351a 100644
--- a/notes.h
+++ b/notes.h
@@ -1,6 +1,9 @@
#ifndef NOTES_H
#define NOTES_H
+/* Free (and de-initialize) the internal notes tree structure */
+void free_notes(void);
+
#define NOTES_SHOW_HEADER 1
#define NOTES_INDENT 2