| 985 | } |
| 986 | |
| 987 | static int notes_display_config(const char *k, const char *v, |
| 988 | const struct config_context *ctx UNUSED, |
| 989 | void *cb) |
| 990 | { |
| 991 | int *load_refs = cb; |
| 992 | |
| 993 | if (*load_refs && !strcmp(k, "notes.displayref")) { |
| 994 | if (!v) |
| 995 | return config_error_nonbool(k); |
| 996 | string_list_add_refs_by_glob(&display_notes_refs, v); |
| 997 | } |
| 998 | |
| 999 | return 0; |
| 1000 | } |
| 1001 | |
| 1002 | char *default_notes_ref(struct repository *repo) |
| 1003 | { |
nothing calls this directly
no test coverage detected