is_workdir_clean | R Documentation |
A clean working directory has no staged, unstaged or untracked files.
is_workdir_clean(repo)
repo |
The path to the git repository. If the directory is not a
repository, parent directories are considered (see git_find). To disable
this search, provide the filepath protected with |
TRUE
when there are no staged, unstaged or untracked files.
Otherwise FALSE
Other git:
clean_git()
,
create_draft_pr()
,
is_repository()
,
new_branch()
,
set_tag()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.