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

Function write_filename_info

builtin/blame.c:233–242  ·  view source on GitHub ↗

* Write out any suspect information which depends on the path. This must be * handled separately from emit_one_suspect_detail(), because a given commit * may have changes in multiple paths. So this needs to appear each time * we mention a new group. * * To allow LF and other nonportable characters in pathnames, * they are c-style quoted as needed. */

Source from the content-addressed store, hash-verified

231 * they are c-style quoted as needed.
232 */
233static void write_filename_info(struct blame_origin *suspect)
234{
235 if (suspect->previous) {
236 struct blame_origin *prev = suspect->previous;
237 printf("previous %s ", oid_to_hex(&prev->commit->object.oid));
238 write_name_quoted(prev->path, stdout, '\n');
239 }
240 printf("filename ");
241 write_name_quoted(suspect->path, stdout, '\n');
242}
243
244/*
245 * Porcelain/Incremental format wants to show a lot of details per

Callers 2

found_guilty_entryFunction · 0.85
emit_porcelain_detailsFunction · 0.85

Calls 2

oid_to_hexFunction · 0.85
write_name_quotedFunction · 0.85

Tested by

no test coverage detected