diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-12-09 14:10:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-09 22:36:44 +0100 |
commit | e6e230eeae0f3cb46c4c356e6cd0a0f1119a2a83 (patch) | |
tree | 0234ae345c7d5255f6d3fc5b41d79c485de100f2 /notes.h | |
parent | notes: rename to load_display_notes() (diff) | |
download | git-e6e230eeae0f3cb46c4c356e6cd0a0f1119a2a83.tar.xz git-e6e230eeae0f3cb46c4c356e6cd0a0f1119a2a83.zip |
notes: create init_display_notes() helper
We currently open code the initialization for revs->notes_opt. Abstract
this away into a helper function so that the logic can be reused in a
future commit.
This is slightly wasteful as we memset the struct twice but this is only
run once so it shouldn't have any major effect.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
-rw-r--r-- | notes.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -261,6 +261,11 @@ struct display_notes_opt { }; /* + * Initialize a display_notes_opt to its default value. + */ +void init_display_notes(struct display_notes_opt *opt); + +/* * Load the notes machinery for displaying several notes trees. * * If 'opt' is not NULL, then it specifies additional settings for the |