default_signature {git2r} | R Documentation |
Get the signature according to the repository's configuration
default_signature(repo) ## S4 method for signature 'git_repository' default_signature(repo)
repo |
The repository |
S4 class git_signature
## Not run: ## Initialize a temporary repository path <- tempfile(pattern="git2r-") dir.create(path) repo <- init(path) ## Create a user config(repo, user.name="Alice", user.email="alice@example.org") ## Get the default signature default_signature(repo) ## Change user config(repo, user.name="Bob", user.email="bob@example.org") ## Get the default signature default_signature(repo) ## End(Not run)