summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2011-03-29 16:55:32 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-03-29 14:29:17 -0700
commit03bb5789cd97de989897e1c9de71a2831ada0544 (patch)
treef4aba44ff79618a5869cee6683ddd3488cc596c3 /builtin
parentRevert "fetch-pack: Implement no-done capability" (diff)
downloadtgif-03bb5789cd97de989897e1c9de71a2831ada0544.tar.xz
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 'builtin')
-rw-r--r--builtin/notes.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/builtin/notes.c b/builtin/notes.c
index a0f310b729..62276072fc 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -100,16 +100,6 @@ struct msg_arg {
struct strbuf buf;
};
-static void expand_notes_ref(struct strbuf *sb)
-{
- if (!prefixcmp(sb->buf, "refs/notes/"))
- return; /* we're happy */
- else if (!prefixcmp(sb->buf, "notes/"))
- strbuf_insert(sb, 0, "refs/", 5);
- else
- strbuf_insert(sb, 0, "refs/notes/", 11);
-}
-
static int list_each_note(const unsigned char *object_sha1,
const unsigned char *note_sha1, char *note_path,
void *cb_data)