libgit2.sys.commit_graph

Members

Enums

GIT_COMMIT_GRAPH_SPLIT_STRATEGY_SINGLE_FILE
anonymousenum GIT_COMMIT_GRAPH_SPLIT_STRATEGY_SINGLE_FILE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_commit_graph_split_strategy_t
enum git_commit_graph_split_strategy_t

The strategy to use when adding a new set of commits to a pre-existing commit-graph chain.

Functions

GIT_COMMIT_GRAPH_WRITER_OPTIONS_INIT
GIT_COMMIT_GRAPH_WRITER_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_commit_graph_free
void git_commit_graph_free(libgit2.types.git_commit_graph* cgraph)

Frees commit-graph data. This should only be called when memory allocated using git_commit_graph_open is not returned to libgit2 because it was not associated with the ODB through a successful call to git_odb_set_commit_graph.

git_commit_graph_open
int git_commit_graph_open(libgit2.types.git_commit_graph** cgraph_out, const(char)* objects_dir)

Opens a git_commit_graph from a path to an objects directory.

git_commit_graph_writer_add_index_file
int git_commit_graph_writer_add_index_file(libgit2.types.git_commit_graph_writer* w, libgit2.types.git_repository* repo, const(char)* idx_path)

Add an .idx file (associated to a packfile) to the writer.

git_commit_graph_writer_add_revwalk
int git_commit_graph_writer_add_revwalk(libgit2.types.git_commit_graph_writer* w, libgit2.types.git_revwalk* walk)

Add a revwalk to the writer. This will add all the commits from the revwalk to the commit-graph.

git_commit_graph_writer_commit
int git_commit_graph_writer_commit(libgit2.types.git_commit_graph_writer* w, .git_commit_graph_writer_options* opts)

Write a commit-graph file to a file.

git_commit_graph_writer_dump
int git_commit_graph_writer_dump(libgit2.buffer.git_buf* buffer, libgit2.types.git_commit_graph_writer* w, .git_commit_graph_writer_options* opts)

Dump the contents of the commit-graph to an in-memory buffer.

git_commit_graph_writer_free
void git_commit_graph_writer_free(libgit2.types.git_commit_graph_writer* w)

Free the commit-graph writer and its resources.

git_commit_graph_writer_new
int git_commit_graph_writer_new(libgit2.types.git_commit_graph_writer** out_, const(char)* objects_info_dir)

Create a new writer for commit-graph files.

git_commit_graph_writer_options_init
int git_commit_graph_writer_options_init(.git_commit_graph_writer_options* opts, uint version_)

Initialize git_commit_graph_writer_options structure

Manifest constants

GIT_COMMIT_GRAPH_WRITER_OPTIONS_VERSION
enum GIT_COMMIT_GRAPH_WRITER_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_commit_graph_writer_options
struct git_commit_graph_writer_options

Options structure for git_commit_graph_writer_commit/git_commit_graph_writer_dump.

Meta

License

GPL-2.0(Linking Exception)