| 1000 | } |
| 1001 | |
| 1002 | char *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", ¬es_ref); |
| 1010 | if (!notes_ref) |
| 1011 | notes_ref = xstrdup(GIT_NOTES_DEFAULT_REF); |
| 1012 | return notes_ref; |
| 1013 | } |
| 1014 | |
| 1015 | void init_notes(struct notes_tree *t, const char *notes_ref, |
| 1016 | combine_notes_fn combine_notes, int flags) |
no test coverage detected