Hadoop Online Training by Edureka

default_signature-methods: Get the signature

Description Usage Arguments Value Examples

Description

Get the signature according to the repository's configuration

Usage

1
2
3
4
default_signature(repo)

## S4 method for signature 'git_repository'
default_signature(repo)

Arguments

repo

The repository object to check signature

Value

S4 class git_signature

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## 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)


Search within the git2r package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.