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

Function score_differs

match-trees.c:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static int score_differs(unsigned mode1, unsigned mode2)
27{
28 int score;
29
30 if (S_ISDIR(mode1) != S_ISDIR(mode2))
31 score = -100;
32 else if (S_ISLNK(mode1) != S_ISLNK(mode2))
33 score = -50;
34 else
35 score = -5;
36 return score;
37}
38
39static int score_matches(unsigned mode1, unsigned mode2)
40{

Callers 1

score_treesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected