@@ -265,7 +265,7 @@ git_stat_files <- function(files, ref = "HEAD", max = NULL, repo = '.') {
265265# ' @rdname git_revert
266266# ' @family git
267267# ' @inheritParams git_open
268- # ' @inheritParams git_commit_info
268+ # ' @inheritParams git_history
269269# ' @param commit if `FALSE`, stage the reverted changes without creating a
270270# ' commit. Default is `TRUE`, that is to say, by default a commit is made.
271271# ' @param ... parameters passed to `git_commit` such as `message` or `author`
@@ -319,7 +319,7 @@ git_revert <- function(
319319 assert_string(ref )
320320 stopifnot(is.logical(commit ), length(commit ) == 1 )
321321
322- sha <- tryCatch(git_commit_id(ref , repo = repo ), error = function (e ){
322+ sha <- tryCatch(git_commit_id(ref , repo = repo ), error = function (e ) {
323323 stop(sprintf(
324324 " Can't find reference/commit '%s' in the current branch history" ,
325325 ref
@@ -343,7 +343,12 @@ git_revert <- function(
343343 }
344344}
345345
346- git_revert_commit <- function (sha , message = revert_message(sha , repo ), ... , repo ){
346+ git_revert_commit <- function (
347+ sha ,
348+ message = revert_message(sha , repo ),
349+ ... ,
350+ repo
351+ ) {
347352 git_commit(message , ... , repo = repo )
348353}
349354
0 commit comments