R/get_all_commits.R

#' Get all commits
#'
#' @param git_repo path to git repo
#'
#' @return data frame
#' @export
#'
#' @examples
#' NULL
get_all_commits <- function(git_repo) {

  purrr::map(1:(length(git2r::commits(git_repo))-1), ~get_single_commit(git_repo, .)) %>%
    dplyr::bind_rows()

}
chapmandu2/gitscraper documentation built on May 30, 2019, 2:04 a.m.