commit-graph.hon commit commit-graph: close under reachability (4f2542b)
   1#ifndef COMMIT_GRAPH_H
   2#define COMMIT_GRAPH_H
   3
   4#include "git-compat-util.h"
   5
   6char *get_commit_graph_filename(const char *obj_dir);
   7
   8struct commit_graph {
   9        int graph_fd;
  10
  11        const unsigned char *data;
  12        size_t data_len;
  13
  14        unsigned char hash_len;
  15        unsigned char num_chunks;
  16        uint32_t num_commits;
  17        struct object_id oid;
  18
  19        const uint32_t *chunk_oid_fanout;
  20        const unsigned char *chunk_oid_lookup;
  21        const unsigned char *chunk_commit_data;
  22        const unsigned char *chunk_large_edges;
  23};
  24
  25struct commit_graph *load_commit_graph_one(const char *graph_file);
  26
  27void write_commit_graph(const char *obj_dir);
  28
  29#endif