Skip to content

Commit 1cc5ee0

Browse files
committed
docs: safeguard examples
1 parent f44d9a0 commit 1cc5ee0

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
@@ -262,7 +262,7 @@ git_stat_files <- function(files, ref = "HEAD", max = NULL, repo = '.') {
262262
#' @param message a commit message. Similar default to `git revert`.
263263
#' @return The SHA of the new revert commit (invisibly), or `NULL` when
264264
#' `no_commit = TRUE`.
265-
#' @examples
265+
#' @examplesIf interactive()
266266
#' repo <- file.path(tempdir(), "myrepo")
267267
#' git_init(repo)
268268
#'

man/git_revert.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)