R/get_all_commits_as_chunks.R

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

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

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