diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-02 15:58:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-02 15:58:50 -0700 |
commit | 23f536cf6236bf2a29026fea52c6bf7624b6485d (patch) | |
tree | 2738ba07faa16941f0d0d5dbc19ec39821920754 /builtin/notes.c | |
parent | a75c3523d35144934e97f2660401e05b36ef8083 (diff) | |
parent | 3925b575687f64d49bd777ba6f64557a56b838b6 (diff) | |
download | git-23f536cf6236bf2a29026fea52c6bf7624b6485d.tar.gz |
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/notes.c')
-rw-r--r-- | builtin/notes.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/builtin/notes.c b/builtin/notes.c index 8685d2bda6..1fb1f73439 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) |