* 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. */
| 231 | * they are c-style quoted as needed. |
| 232 | */ |
| 233 | static 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 |
no test coverage detected