libgit2

git_describe_format_options

Version:

Describe format options structure

Initialize with GIT_DESCRIBE_FORMAT_OPTIONS_INIT. Alternatively, you can use git_describe_format_options_init.

Signature

typedef struct git_describe_format_options { unsigned int version unsigned int abbreviated_size int always_use_long_format const char *dirty_suffix };

Members

unsigned int
version
unsigned int
abbreviated_size

Size of the abbreviated commit id to use. This value is the lower bound for the length of the abbreviated string. The default is 7.

int
always_use_long_format

Set to use the long format even when a shorter name could be used.

const char *
dirty_suffix

If the workdir is dirty and this is set, this string will be appended to the description string.

Parameter To

Versions