diff options
Diffstat (limited to 'notes.c')
-rw-r--r-- | notes.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1303,3 +1303,13 @@ void expand_notes_ref(struct strbuf *sb) else strbuf_insert(sb, 0, "refs/notes/", 11); } + +void expand_loose_notes_ref(struct strbuf *sb) +{ + unsigned char object[20]; + + if (get_sha1(sb->buf, object)) { + /* fallback to expand_notes_ref */ + expand_notes_ref(sb); + } +} |