Skip to content

Commit 6069c1a

Browse files
committed
Merge branch 'kh/use-default-notes-doc'
Doc update. * kh/use-default-notes-doc: notes: move the documentation to the struct notes: update documentation for `use_default_notes`
2 parents 0899beb + aeee140 commit 6069c1a

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

notes.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,17 @@ void free_notes(struct notes_tree *t);
256256
struct string_list;
257257

258258
struct display_notes_opt {
259+
/*
260+
* Less than `0` is "unset", which means that the default notes
261+
* are shown iff no other notes are given. Otherwise,
262+
* treat it like a boolean.
263+
*/
259264
int use_default_notes;
265+
266+
/*
267+
* A list of globs (in the same style as notes.displayRef) where
268+
* notes should be loaded from.
269+
*/
260270
struct string_list extra_notes_refs;
261271
};
262272

@@ -283,14 +293,7 @@ void disable_display_notes(struct display_notes_opt *opt, int *show_notes);
283293
/*
284294
* Load the notes machinery for displaying several notes trees.
285295
*
286-
* If 'opt' is not NULL, then it specifies additional settings for the
287-
* displaying:
288-
*
289-
* - suppress_default_notes indicates that the notes from
290-
* core.notesRef and notes.displayRef should not be loaded.
291-
*
292-
* - extra_notes_refs may contain a list of globs (in the same style
293-
* as notes.displayRef) where notes should be loaded from.
296+
* 'opt' may be NULL.
294297
*/
295298
void load_display_notes(struct display_notes_opt *opt);
296299

0 commit comments

Comments
 (0)