Skip to contents

Does the input contain a Git repository?

Usage

isGitRepo(x)

isAGitRepo(x)

allAreGitRepos(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

Functions

  • isGitRepo(): Vectorized.

  • isAGitRepo(): Scalar.

  • allAreGitRepos(): Scalar.

Note

Updated 2023-10-02.

Examples

## TRUE ====
isGitRepo(file.path("~", "git", "monorepo"))
#> [1] TRUE

## FALSE ====
isGitRepo("~")
#> [1] FALSE