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

Function expand_notes_ref

notes.c:1370–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1368}
1369
1370void expand_notes_ref(struct strbuf *sb)
1371{
1372 if (starts_with(sb->buf, "refs/notes/"))
1373 return; /* we're happy */
1374 else if (starts_with(sb->buf, "notes/"))
1375 strbuf_insertstr(sb, 0, "refs/");
1376 else
1377 strbuf_insertstr(sb, 0, "refs/notes/");
1378}
1379
1380void expand_loose_notes_ref(struct strbuf *sb)
1381{

Callers 3

enable_ref_display_notesFunction · 0.85
expand_loose_notes_refFunction · 0.85
cmd_notesFunction · 0.85

Calls 2

starts_withFunction · 0.85
strbuf_insertstrFunction · 0.85

Tested by

no test coverage detected