R/api-get-top-level-commits.R

Defines functions get_top_level_commits

Documented in get_top_level_commits

#' All top-level commits
#'
#' Return all top-level commits since a particular version
#' as commit objects.
#'
#' @return A [tibble] with at least two columns:
#' - `commit`: the commit SHA
#' - `message`: the commit message
#'
#' @param since A commit SHA, e.g. as returned in the `commit` component of
#'   [get_last_version_tag()].
#'   If `NULL`, the entire log is retrieved.
#'
#' @example man/examples/get-last-tag.R
#'
#' @export
get_top_level_commits <- function(since = NULL) {
  with_repo(get_top_level_commits_impl(since))
}
cynkra/fledge documentation built on April 17, 2025, 3:56 a.m.