| 1368 | } |
| 1369 | |
| 1370 | void expand_notes_ref(struct strbuf *sb) |
| 1371 | { |
| 1372 | if (starts_with(sb->buf, "refs/notes/")) |
| 1373 | return; /* we're happy */ |
| 1374 | else if (starts_with(sb->buf, "notes/")) |
| 1375 | strbuf_insertstr(sb, 0, "refs/"); |
| 1376 | else |
| 1377 | strbuf_insertstr(sb, 0, "refs/notes/"); |
| 1378 | } |
| 1379 | |
| 1380 | void expand_loose_notes_ref(struct strbuf *sb) |
| 1381 | { |
no test coverage detected