pub fn resolve_notes_ref_with_config(
git_dir: &Path,
ref_override: Option<&str>,
config: &GitConfig,
) -> Result<NotesRef>Expand description
Like resolve_notes_ref, but resolves core.notesRef against a
caller-supplied effective config instead of re-reading <git_dir>/config
blindly.
Callers that have already resolved the repository config — include/
includeIf directives plus command-line -c / GIT_CONFIG_* overrides —
pass it here so the notes ref honours the same core.notesRef the rest of the
command sees. The explicit override and GIT_NOTES_REF still take precedence,
matching git.