MCPcopy Index your code
hub / github.com/git/git / enable_ref_display_notes

Function enable_ref_display_notes

notes.c:1093–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093void enable_ref_display_notes(struct display_notes_opt *opt, int *show_notes,
1094 const char *ref) {
1095 struct strbuf buf = STRBUF_INIT;
1096 strbuf_addstr(&buf, ref);
1097 expand_notes_ref(&buf);
1098 string_list_append_nodup(&opt->extra_notes_refs,
1099 strbuf_detach(&buf, NULL));
1100 *show_notes = 1;
1101}
1102
1103void disable_display_notes(struct display_notes_opt *opt, int *show_notes)
1104{

Callers 3

handle_revision_optFunction · 0.85
git_format_configFunction · 0.85
cmd_format_revFunction · 0.85

Calls 4

strbuf_addstrFunction · 0.85
expand_notes_refFunction · 0.85
string_list_append_nodupFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected