MCPcopy Create free account
hub / github.com/git/git / show_name

Function show_name

log-tree.c:328–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328static 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.

Callers 1

format_decorationsFunction · 0.70

Calls 2

strbuf_addstrFunction · 0.85
prettify_refnameFunction · 0.85

Tested by

no test coverage detected