/gitlogr

Process Git Logs from Repositories in R

Primary LanguageRGNU General Public License v3.0GPL-3.0

gitlogr

CRAN_Status_Badge lifecycle

Overview

{gitlogr} aims to provide a clean way to get your Git commit history and process it in R.

Installation

The development version can be installed from GitHub with:

# install.packages("devtools")
devtools::install_github("aldomann/gitlogr")

Examples

library(gitlogr)

The main function, get_history(), allows to quickly parse the results of git log into an R data frame.

gitlogr::get_history(from = "2021-02-01", to = "2021-02-28") %>% 
  knitr::kable()
date message
2021-02-26 10:10:06 Fixed message left trimming in get_git_commit_history() function
2021-02-26 10:24:05 Minor refactoring and proper usage of rlang::.data
2021-02-26 10:24:58 Added clipboard parameter to get_git_commit_history() function
2021-02-26 10:25:36 Added examples and badges to README file
2021-02-26 10:25:46 Updated documentation
2021-02-26 10:26:01 Version bump to v1.1.2

The count_commits() function is a wrapper of get_history() that can be used to calculate the amount of commits done in a certain date range.

gitlogr::count_commits(from = "2019-12-01", to = "2019-12-31")
#> [1] 9