libgit2

git_object_id_options

Version:

Options for calculating object IDs from raw content.

Initialize with GIT_OBJECT_ID_OPTIONS_INIT. Alternatively, you can use git_object_id_options_init.

Signature

typedef struct git_object_id_options { unsigned int version git_object_t object_type git_oid_t oid_type git_filter_list *filters };

Members

unsigned int
version

version for the struct

object_type

Object type of the raw content; if not specified, this defaults to GIT_OBJECT_BLOB.

oid_type

Object ID type to generate; if not specified, this defaults to GIT_OID_DEFAULT.

filters

Filters to mutate the raw data with; these are ignored unless the given raw object data is a blob.

Parameter To

Versions