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

Function diff_might_be_rename

tree-diff.c:594–598  ·  view source on GitHub ↗

* Does it look like the resulting diff might be due to a rename? * - single entry * - not a valid previous file */

Source from the content-addressed store, hash-verified

592 * - not a valid previous file
593 */
594static inline int diff_might_be_rename(void)
595{
596 return diff_queued_diff.nr == 1 &&
597 !DIFF_FILE_VALID(diff_queued_diff.queue[0]->one);
598}
599
600static void try_to_follow_renames(const struct object_id *old_oid,
601 const struct object_id *new_oid,

Callers 1

diff_tree_oidFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected