Learn R Programming

git2r (version 0.35.0)

workdir: Workdir of repository

Description

Workdir of repository

Usage

workdir(repo = ".")

Value

Character vector with the path of the workdir. If the repository is bare, NULL will be returned.

Arguments

repo

a path to a repository or a git_repository object. Default is '.'

Examples

Run this code
if (FALSE) {
## Create a directory in tempdir
path <- tempfile(pattern="git2r-")
dir.create(path)

## Initialize a repository
repo <- init(path)

## Get the path of the workdir for repository
workdir(repo)
}

Run the code above in your browser using DataLab