check-vector-isGitRepo: Does the input contain a Git repository?

check-vector-isGitRepoR Documentation

Does the input contain a Git repository?

Description

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"))

## FALSE ====
isGitRepo("~")

steinbaugh/goalie documentation built on Jan. 17, 2024, 5:16 p.m.