libgit2

git_repository_set_ident

Version:

Set the identity to be used for writing reflogs

If both are set, this name and email will be used to write to the reflog. Pass NULL to unset. When unset, the identity will be taken from the repository's configuration.

Signature

int git_repository_set_ident(git_repository *repo, const char *name, const char *email);

Parameters

In
repo

the repository to configure

const char *
In
name

the name to use for the reflog entries

const char *
In
email

Returns

int

Versions