summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-02 22:58:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-02 22:58:50 (GMT)
commit23f536cf6236bf2a29026fea52c6bf7624b6485d (patch)
tree2738ba07faa16941f0d0d5dbc19ec39821920754 /builtin
parenta75c3523d35144934e97f2660401e05b36ef8083 (diff)
parent3925b575687f64d49bd777ba6f64557a56b838b6 (diff)
downloadgit-23f536cf6236bf2a29026fea52c6bf7624b6485d.zip
git-23f536cf6236bf2a29026fea52c6bf7624b6485d.tar.gz
git-23f536cf6236bf2a29026fea52c6bf7624b6485d.tar.bz2
Merge branch 'jk/notes-ui-updates'
* jk/notes-ui-updates: contrib/completion: --notes, --no-notes log/pretty-options: Document --[no-]notes and deprecate old notes options revision.c: make --no-notes reset --notes list revision.c: support --notes command-line option notes: refactor display notes default handling notes: refactor display notes extra refs field revision.c: refactor notes ref expansion notes: make expand_notes_ref globally accessible
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 8685d2b..1fb1f73 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)