diff options
author | Jeff King <peff@peff.net> | 2011-03-29 16:56:53 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-29 14:30:54 -0700 |
commit | 304cc11c6566cf22e811aa791988c61b6d291973 (patch) | |
tree | 6fd82e26abd5019c134016a44b3f93566daca704 /notes.h | |
parent | c063f0a973832784f09a6901eac9501b6f796bde (diff) | |
download | git-304cc11c6566cf22e811aa791988c61b6d291973.tar.gz |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; }; /* |