From 03bb5789cd97de989897e1c9de71a2831ada0544 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 29 Mar 2011 16:55:32 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- notes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notes.h') 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 -- cgit v1.2.1