gitlogr

lifecycle CRAN\_Status\_Badge

{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

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()
datemessage
2021-02-26 10:10:06Fixed message left trimming in get_git_commit_history() function
2021-02-26 10:24:05Minor refactoring and proper usage of rlang::.data
2021-02-26 10:24:58Added clipboard parameter to get_git_commit_history() function
2021-02-26 10:25:36Added examples and badges to README file
2021-02-26 10:25:46Updated documentation
2021-02-26 10:26:01Version 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
Alfredo Hernández
Alfredo Hernández
Physicist and Data Scientist

I have a passion for technology, maths, and design.

Related