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

Function dump_quoted_path

combine-diff.c:905–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905static void dump_quoted_path(const char *head,
906 const char *prefix,
907 const char *path,
908 const char *line_prefix,
909 const char *c_meta, const char *c_reset)
910{
911 static struct strbuf buf = STRBUF_INIT;
912
913 strbuf_reset(&buf);
914 strbuf_addstr(&buf, line_prefix);
915 strbuf_addstr(&buf, c_meta);
916 strbuf_addstr(&buf, head);
917 quote_two_c_style(&buf, prefix, path, 0);
918 strbuf_addstr(&buf, c_reset);
919 puts(buf.buf);
920}
921
922static void show_combined_header(struct combine_diff_path *elem,
923 int num_parent,

Callers 1

show_combined_headerFunction · 0.85

Calls 2

strbuf_addstrFunction · 0.85
quote_two_c_styleFunction · 0.85

Tested by

no test coverage detected