git_signature_default

Create a new action signature with default user and now timestamp.

This looks up the user.name and user.email from the configuration and uses the current time as the timestamp, and creates a new signature based on that information. It will return git_error_code.GIT_ENOTFOUND if either the user.name or user.email are not set.

extern (C) nothrow @nogc
int
git_signature_default

Parameters

out_ libgit2_d.types.git_signature**

new signature

repo libgit2_d.types.git_repository*

repository pointer

Return Value

Type: int

0 on success, git_error_code.GIT_ENOTFOUND if config is missing, or error code

Meta