Skip to content

Commit

Permalink
Add roxygen template for repo parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>
  • Loading branch information
stewid committed Jan 6, 2018
1 parent c9a1119 commit 2bce10e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 1 addition & 6 deletions R/commit.r
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,7 @@ setMethod("commits",
##' Last commit
##'
##' Get last commit in the current branch.
##' @param repo repository \code{object}
##' \code{\linkS4class{git_repository}}, or a path to a
##' repository, or \code{NULL}. If the \code{repo} argument is
##' \code{NULL}, the repository is searched for with
##' \code{\link{discover_repository}} in the current working
##' directory.
##' @template repo-param
##' @export
##' @examples
##' \dontrun{
Expand Down
6 changes: 6 additions & 0 deletions man-roxygen/repo-param.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
##' @param repo repository \code{object}
##' \code{\linkS4class{git_repository}}, or a path to a
##' repository, or \code{NULL}. If the \code{repo} argument is
##' \code{NULL}, the repository is searched for with
##' \code{\link{discover_repository}} in the current working
##' directory.

0 comments on commit 2bce10e

Please sign in to comment.