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

Function check_pbase_path

builtin/pack-objects.c:2086–2101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2084}
2085
2086static int check_pbase_path(unsigned hash)
2087{
2088 int pos = done_pbase_path_pos(hash);
2089 if (0 <= pos)
2090 return 1;
2091 pos = -pos - 1;
2092 ALLOC_GROW(done_pbase_paths,
2093 done_pbase_paths_num + 1,
2094 done_pbase_paths_alloc);
2095 done_pbase_paths_num++;
2096 if (pos < done_pbase_paths_num)
2097 MOVE_ARRAY(done_pbase_paths + pos + 1, done_pbase_paths + pos,
2098 done_pbase_paths_num - pos - 1);
2099 done_pbase_paths[pos] = hash;
2100 return 0;
2101}
2102
2103static void add_preferred_base_object(const char *name)
2104{

Callers 1

Calls 1

done_pbase_path_posFunction · 0.85

Tested by

no test coverage detected