Skip to content

aldomann/gitlogr

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Process Git Logs from Repositories in R

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages