git_indexer_new

Create a new indexer instance

  1. int git_indexer_new(.git_indexer** out_, const(char)* path, libgit2.oid.git_oid_t oid_type, .git_indexer_options* opts)
  2. int git_indexer_new(.git_indexer** out_, const(char)* path, uint mode, libgit2.types.git_odb* odb, .git_indexer_options* opts)
    version(!GIT_EXPERIMENTAL_SHA256)
    extern (C) nothrow @nogc public
    int
    git_indexer_new

Parameters

out_ .git_indexer**

where to store the indexer instance

path const(char)*

to the directory where the packfile should be stored

mode uint

permissions to use creating packfile or 0 for defaults

odb libgit2.types.git_odb*

object database from which to read base objects when fixing thin packs. Pass null if no thin pack is expected (an error will be returned if there are bases missing)

opts .git_indexer_options*

Optional structure containing additional options. See git_indexer_options above.

Return Value

Type: int

0 or an error code.

Meta