git_root_directory: Locate the git project root directory

View source: R/git.R

git_root_directoryR Documentation

Locate the git project root directory

Description

From a subdirectory within a git project locate the root directory. This is the directory containing the .git files.

Usage

git_root_directory(dir)

Arguments

dir

The directory to locate the git project root from.

Value

The git project root normalized, or throws an error if this can't be located.


vimc/dettl documentation built on Oct. 6, 2022, 2:13 p.m.