| 326 | } |
| 327 | |
| 328 | static void show_name(struct strbuf *sb, const struct name_decoration *decoration) |
| 329 | { |
| 330 | if (decoration_flags == DECORATE_SHORT_REFS) |
| 331 | strbuf_addstr(sb, prettify_refname(decoration->name)); |
| 332 | else |
| 333 | strbuf_addstr(sb, decoration->name); |
| 334 | } |
| 335 | |
| 336 | /* |
| 337 | * The caller makes sure there is no funny color before calling. |
no test coverage detected