Get the signature according to the repository's configuration
default_signature(repo =".")
Arguments
repo: a path to a repository or a git_repository
object. Default is '.'
Returns
A git_signature object with entries:
Examples
## Not run:## Initialize a temporary repositorypath <- tempfile(pattern="git2r-")dir.create(path)repo <- init(path)## Create a userconfig(repo, user.name ="Alice", user.email ="alice@example.org")## Get the default signaturedefault_signature(repo)## Change userconfig(repo, user.name ="Bob", user.email ="bob@example.org")## Get the default signaturedefault_signature(repo)## End(Not run)