is_repository: Determine if a directory is in a git repository

View source: R/utils.R

is_repositoryR Documentation

Determine if a directory is in a git repository

Description

The path arguments specifies the directory at which to start the search for a git repository. If it is not a git repository itself, then its parent directory is consulted, then the parent's parent, and so on.

Usage

is_repository(path = ".")

Arguments

path

the location of the git repository, see details.

Value

TRUE if directory is in a git repository else FALSE

See Also

Other git: clean_git(), create_draft_pr(), is_workdir_clean(), new_branch(), set_tag()


inbo/checklist documentation built on June 15, 2025, 12:54 p.m.