Skip to content

Commit 334491e

Browse files
committed
docs: safeguard examples
1 parent f44d9a0 commit 334491e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

R/commit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#' * `git_log()`: A data frame with one row per commit
2828
#' * `git_commit()`, `git_commit_all()`: A SHA
2929
#' @useDynLib gert R_git_commit_create
30-
#' @examples
30+
#' @examplesIf interactive()
3131
#' oldwd <- getwd()
3232
#' repo <- file.path(tempdir(), "myrepo")
3333
#' git_init(repo)

man/git_commit.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)