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

Function default_notes_ref

notes.c:1002–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1000}
1001
1002char *default_notes_ref(struct repository *repo)
1003{
1004 char *notes_ref = NULL;
1005
1006 if (!notes_ref)
1007 notes_ref = xstrdup_or_null(getenv(GIT_NOTES_REF_ENVIRONMENT));
1008 if (!notes_ref)
1009 repo_config_get_string(repo, "core.notesref", &notes_ref);
1010 if (!notes_ref)
1011 notes_ref = xstrdup(GIT_NOTES_DEFAULT_REF);
1012 return notes_ref;
1013}
1014
1015void init_notes(struct notes_tree *t, const char *notes_ref,
1016 combine_notes_fn combine_notes, int flags)

Callers 4

init_notesFunction · 0.85
load_display_notesFunction · 0.85
mergeFunction · 0.85
get_refFunction · 0.85

Calls 3

xstrdup_or_nullFunction · 0.85
repo_config_get_stringFunction · 0.85
xstrdupFunction · 0.85

Tested by

no test coverage detected