inGit {dang} | R Documentation |
git
repository?This function recursively ascends the filesystem tree from the
given directory until it either finds a directory .git
, or
the top-level directory to abort the search.
inGit(cwd = getwd())
cwd |
The start directory, default to the current working directory |
On Windows, FALSE
is returned unconditionally.
A boolean value indicating whether or not the given
directory is, in fact, in a git
repository.
Dirk Eddelbuettel
inGit()