Skip to content

Commit cd77539

Browse files
committed
Fix Roxygen comment and add missing man page
1 parent 4a3187d commit cd77539

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

R/remote.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ setMethod("remote_url",
359359
##' @rdname remote_ls-methods
360360
##' @docType methods
361361
##' @param name Character vector with the "remote" repository URL to query or
362-
##the name of the remote if a \code{repo} argument is given.
362+
##' the name of the remote if a \code{repo} argument is given.
363363
##' @param repo an optional repository object used if remotes are specified by name.
364364
##' @param credentials The credentials for the remote repository.
365365
##' @keywords methods

man/remote_ls-methods.Rd

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
% Generated by roxygen2 (4.1.1): do not edit by hand
2+
% Please edit documentation in R/remote.r
3+
\docType{methods}
4+
\name{remote_ls}
5+
\alias{remote_ls}
6+
\alias{remote_ls,character-method}
7+
\title{List references in a remote repository}
8+
\usage{
9+
remote_ls(name, repo = git2r::init(tempdir()), credentials = NULL)
10+
11+
\S4method{remote_ls}{character}(name, repo = git2r::init(tempdir()),
12+
credentials = NULL)
13+
}
14+
\arguments{
15+
\item{name}{Character vector with the "remote" repository URL to query or
16+
the name of the remote if a \code{repo} argument is given.}
17+
18+
\item{repo}{an optional repository object used if remotes are specified by name.}
19+
20+
\item{credentials}{The credentials for the remote repository.}
21+
}
22+
\value{
23+
Character vector for each reference with the associated commit IDs.
24+
}
25+
\description{
26+
Displays references available in a remote repository along with the
27+
associated commit IDs. Akin to the 'git ls-remote' command.
28+
}
29+
\examples{
30+
\dontrun{
31+
remote_ls("https://github.com/ropensci/git2r")
32+
}
33+
}
34+
\keyword{methods}
35+

0 commit comments

Comments
 (0)