Skip to content

Commit

Permalink
Register symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
stewid committed Oct 16, 2024
1 parent e9736f2 commit 902d35b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 9 additions & 1 deletion R/commit.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## git2r, R bindings to the libgit2 library.
## Copyright (C) 2013-2019 The git2r contributors
## Copyright (C) 2013-2024 The git2r contributors
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License, version 2,
Expand All @@ -26,6 +26,7 @@
##' @return An integer vector of length 2 with number of commits that
##' the upstream commit is ahead and behind the local commit
##' @export
##' @useDynLib git2r git2r_graph_ahead_behind
##' @examples \dontrun{
##' ## Create a directory in tempdir
##' path <- tempfile(pattern="git2r-")
Expand Down Expand Up @@ -107,6 +108,8 @@ add_session_info <- function(message) {
##' }
##' }
##' @export
##' @useDynLib git2r git2r_commit
##' @useDynLib git2r git2r_index_remove_bypath
##' @examples
##' \dontrun{
##' ## Initialize a repository
Expand Down Expand Up @@ -231,6 +234,9 @@ shallow_commits <- function(repo, sha, n) {
##' \code{--no-follow} is reproduced.
##' @return list of commits in repository
##' @export
##' @useDynLib git2r git2r_reference_dwim
##' @useDynLib git2r git2r_revwalk_list2
##' @useDynLib git2r git2r_revwalk_list
##' @examples
##' \dontrun{
##' ## Initialize a repository
Expand Down Expand Up @@ -391,6 +397,7 @@ last_commit <- function(repo = ".") {
##' @return TRUE if \code{commit} is descendant of \code{ancestor},
##' else FALSE
##' @export
##' @useDynLib git2r git2r_graph_descendant_of
##' @examples
##' \dontrun{
##' ## Create a directory in tempdir
Expand Down Expand Up @@ -518,6 +525,7 @@ is_merge <- function(commit = NULL) {
##' @param object a git_commit object.
##' @return list of git_commit objects
##' @export
##' @useDynLib git2r git2r_commit_parent_list
##' @examples
##' \dontrun{
##' ## Initialize a temporary repository
Expand Down
7 changes: 6 additions & 1 deletion R/stash.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## git2r, R bindings to the libgit2 library.
## Copyright (C) 2013-2019 The git2r contributors
## Copyright (C) 2013-2024 The git2r contributors
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License, version 2,
Expand Down Expand Up @@ -52,6 +52,7 @@ stash_object <- function(object) {
##' \code{git_repository} object. Default is \code{index = 1}.
##' @return invisible NULL
##' @export
##' @useDynLib git2r git2r_stash_apply
##' @examples \dontrun{
##' ## Initialize a temporary repository
##' path <- tempfile(pattern="git2r-")
Expand Down Expand Up @@ -108,6 +109,7 @@ stash_apply <- function(object = ".", index = 1) {
##' \code{git_repository} object. Default is \code{index = 1}.
##' @return invisible NULL
##' @export
##' @useDynLib git2r git2r_stash_drop
##' @examples \dontrun{
##' ## Initialize a temporary repository
##' path <- tempfile(pattern="git2r-")
Expand Down Expand Up @@ -165,6 +167,7 @@ stash_drop <- function(object = ".", index = 1) {
##' @return invisible \code{git_stash} object if anything to stash
##' else NULL
##' @export
##' @useDynLib git2r git2r_stash_save
##' @examples \dontrun{
##' ## Initialize a temporary repository
##' path <- tempfile(pattern="git2r-")
Expand Down Expand Up @@ -212,6 +215,7 @@ stash <- function(repo = ".",
##' @template repo-param
##' @return list of stashes in repository
##' @export
##' @useDynLib git2r git2r_stash_list
##' @examples \dontrun{
##' ## Initialize a temporary repository
##' path <- tempfile(pattern="git2r-")
Expand Down Expand Up @@ -265,6 +269,7 @@ stash_list <- function(repo = ".") {
##' \code{git_repository} object. Default is \code{index = 1}.
##' @return invisible NULL
##' @export
##' @useDynLib git2r git2r_stash_pop
##' @examples \dontrun{
##' ## Initialize a temporary repository
##' path <- tempfile(pattern="git2r-")
Expand Down

0 comments on commit 902d35b

Please sign in to comment.