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

Function wt_shortstatus_other

wt-status.c:2077–2090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2075}
2076
2077static void wt_shortstatus_other(struct string_list_item *it,
2078 struct wt_status *s, const char *sign)
2079{
2080 color_fprintf(s->fp, color(WT_STATUS_UNTRACKED, s), "%s", sign);
2081 if (s->null_termination) {
2082 fprintf(s->fp, " %s%c", it->string, 0);
2083 } else {
2084 struct strbuf onebuf = STRBUF_INIT;
2085 const char *one;
2086 one = quote_path(it->string, s->prefix, &onebuf, QUOTE_PATH_QUOTE_SP);
2087 fprintf(s->fp, " %s\n", one);
2088 strbuf_release(&onebuf);
2089 }
2090}
2091
2092static void wt_shortstatus_print_tracking(struct wt_status *s)
2093{

Callers 1

wt_shortstatus_printFunction · 0.85

Calls 4

color_fprintfFunction · 0.85
quote_pathFunction · 0.85
strbuf_releaseFunction · 0.85
colorFunction · 0.70

Tested by

no test coverage detected