Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-03-30 00:56:53 +0400
committerJunio C Hamano <gitster@pobox.com>2011-03-30 01:30:54 +0400
commit304cc11c6566cf22e811aa791988c61b6d291973 (patch)
tree6fd82e26abd5019c134016a44b3f93566daca704 /notes.h
parentc063f0a973832784f09a6901eac9501b6f796bde (diff)
notes: refactor display notes extra refs field
There's no need to use an extra pointer, which just ends up leaking memory. The fact that the list is empty tells us the same thing. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
-rw-r--r--notes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/notes.h b/notes.h
index 60bdf289a3..7ae3eefe06 100644
--- a/notes.h
+++ b/notes.h
@@ -1,6 +1,8 @@
#ifndef NOTES_H
#define NOTES_H
+#include "string-list.h"
+
/*
* Function type for combining two notes annotating the same object.
*
@@ -257,7 +259,7 @@ struct string_list;
struct display_notes_opt {
unsigned int suppress_default_notes:1;
- struct string_list *extra_notes_refs;
+ struct string_list extra_notes_refs;
};
/*