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

Function fill_print_name

diff.c:2862–2878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2860}
2861
2862static void fill_print_name(struct diffstat_file *file)
2863{
2864 struct strbuf pname = STRBUF_INIT;
2865
2866 if (file->print_name)
2867 return;
2868
2869 if (file->is_renamed)
2870 pprint_rename(&pname, file->from_name, file->name);
2871 else
2872 quote_c_style(file->name, &pname, NULL, 0);
2873
2874 if (file->comments)
2875 strbuf_addf(&pname, " (%s)", file->comments);
2876
2877 file->print_name = strbuf_detach(&pname, NULL);
2878}
2879
2880static void print_stat_summary_inserts_deletes(struct diff_options *options,
2881 int files, int insertions, int deletions)

Callers 2

show_statsFunction · 0.85
show_numstatFunction · 0.85

Calls 4

pprint_renameFunction · 0.85
quote_c_styleFunction · 0.85
strbuf_addfFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected