Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-03-30 00:55:32 +0400
committerJunio C Hamano <gitster@pobox.com>2011-03-30 01:29:17 +0400
commit03bb5789cd97de989897e1c9de71a2831ada0544 (patch)
treef4aba44ff79618a5869cee6683ddd3488cc596c3 /notes.h
parent07514c83c2b7e6de926ef758905e3f43b4de6bfa (diff)
notes: make expand_notes_ref globally accessible
This function is useful for other commands besides "git notes" which want to let users refer to notes by their shorthand name. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
-rw-r--r--notes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notes.h b/notes.h
index 83bd6e0ec0..60bdf289a3 100644
--- a/notes.h
+++ b/notes.h
@@ -307,4 +307,7 @@ void string_list_add_refs_by_glob(struct string_list *list, const char *glob);
void string_list_add_refs_from_colon_sep(struct string_list *list,
const char *globs);
+/* Expand inplace a note ref like "foo" or "notes/foo" into "refs/notes/foo" */
+void expand_notes_ref(struct strbuf *sb);
+
#endif