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

Function treedelta

kwset.c:378–389  ·  view source on GitHub ↗

Set delta entries for the links of the given tree such that the preexisting delta value is larger than the current depth. */

Source from the content-addressed store, hash-verified

376/* Set delta entries for the links of the given tree such that
377 the preexisting delta value is larger than the current depth. */
378static void
379treedelta (register struct tree const *tree,
380 register unsigned int depth,
381 unsigned char delta[])
382{
383 if (!tree)
384 return;
385 treedelta(tree->llink, depth, delta);
386 treedelta(tree->rlink, depth, delta);
387 if (depth < delta[tree->label])
388 delta[tree->label] = depth;
389}
390
391/* Return true if A has every label in B. */
392static int

Callers 1

kwsprepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected