Learn R Programming

TAF (version 4.3.0)

git.repo: Git Repo

Description

Read the Git repository name from the .git folder.

Usage

git.repo(path = ".", owner = FALSE, warn = FALSE)

Value

String of the format "[owner]/repo".

Arguments

path

top directory of a Git repository.

owner

whether to include the repository owner name.

warn

whether to generate a warning if no .git/config file is found.

See Also

draft.readme calls git.repo to include the repository name in the README.md.

TAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
git.repo()
git.repo(owner=TRUE)
}

Run the code above in your browser using DataLab