Skip to content

Commit

Permalink
Register symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
stewid committed Oct 17, 2024
1 parent c72cd7d commit 7fecba5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
4 changes: 3 additions & 1 deletion R/merge.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-2023 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 @@ -20,6 +20,7 @@
##' @param two The other commit
##' @return git_commit
##' @export
##' @useDynLib git2r git2r_merge_base
##' @examples \dontrun{
##' ## Create a directory in tempdir
##' path <- tempfile(pattern="git2r-")
Expand Down Expand Up @@ -73,6 +74,7 @@ merge_base <- function(one = NULL, two = NULL) {
##' @param ... Additional arguments (unused).
##' @template return-git_merge_result
##' @export
##' @useDynLib git2r git2r_merge_branch
##' @template merge-example
merge.git_branch <- function(x, y = NULL, commit_on_success = TRUE,
merger = NULL, fail = FALSE, ...) {
Expand Down
6 changes: 5 additions & 1 deletion R/note.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 @@ -21,6 +21,7 @@
##' @return Character vector of length one with name of default notes
##' reference
##' @export
##' @useDynLib git2r git2r_note_default_ref
##' @examples
##' \dontrun{
##' ## Create and initialize a repository in a temporary directory
Expand Down Expand Up @@ -48,6 +49,7 @@ note_default_ref <- function(repo = ".") {
##' @param force Overwrite existing note. Default is FALSE
##' @return git_note
##' @export
##' @useDynLib git2r git2r_note_create
##' @examples
##' \dontrun{
##' ## Create and initialize a repository in a temporary directory
Expand Down Expand Up @@ -115,6 +117,7 @@ note_create <- function(object = NULL,
##' \code{note_default_ref}.
##' @return list with git_note objects
##' @export
##' @useDynLib git2r git2r_notes
##' @examples
##' \dontrun{
##' ## Create and initialize a repository in a temporary directory
Expand Down Expand Up @@ -170,6 +173,7 @@ notes <- function(repo = ".", ref = NULL) {
##' @param committer Signature of the notes commit committer.
##' @return invisible NULL
##' @export
##' @useDynLib git2r git2r_note_remove
##' @examples
##' \dontrun{
##' ## Create and initialize a repository in a temporary directory
Expand Down
5 changes: 4 additions & 1 deletion R/push.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 @@ -41,6 +41,9 @@ get_upstream_name <- function(object) {
##' @return invisible(NULL)
##' @seealso \code{\link{cred_user_pass}}, \code{\link{cred_ssh_key}}
##' @export
##' @useDynLib git2r git2r_branch_canonical_name
##' @useDynLib git2r git2r_branch_upstream_canonical_name
##' @useDynLib git2r git2r_push
##' @examples
##' \dontrun{
##' ## Initialize two temporary repositories
Expand Down
3 changes: 2 additions & 1 deletion R/reference.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-2018 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 @@ -18,6 +18,7 @@
##' @template repo-param
##' @return Character vector with references
##' @export
##' @useDynLib git2r git2r_reference_list
##' @examples
##' \dontrun{
##' ## Initialize two temporary repositories
Expand Down
3 changes: 2 additions & 1 deletion R/refspec.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 @@ -22,6 +22,7 @@
##' @param opts List with push options. Default is NULL.
##' @return List with remote (character vector) and refspec (character
##' vector).
##' @useDynLib git2r git2r_config_get_string
##' @noRd
get_refspec <- function(repo = NULL, remote = NULL, spec = NULL, opts = NULL) {
stopifnot(inherits(repo, "git_repository"))
Expand Down

0 comments on commit 7fecba5

Please sign in to comment.