MCPcopy Index your code
hub / github.com/git/git / hash_obj

Function hash_obj

decorate.c:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "decorate.h"
9
10static unsigned int hash_obj(const struct object *obj, unsigned int n)
11{
12 return oidhash(&obj->oid) % n;
13}
14
15static void *insert_decoration(struct decoration *n, const struct object *base, void *decoration)
16{

Callers 2

insert_decorationFunction · 0.70
lookup_decorationFunction · 0.70

Calls 1

oidhashFunction · 0.85

Tested by

no test coverage detected