Skip to content

nc-wos/GitDiffGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

GitDiffGenerator

Generates git diff file from given repositories. By default it generates from last 7 days till now. Can be run on Windows and Linux (from v2.0).

How to execute

There are 2 ways of execution this program:

  • java -jar with params
  • java -jar + application.properties at the same location as *.jar file

java -jar with params

java -jar Gipter.jar author="Anakin Skywalker" itemPath="c:\\Path\\to\\git\\diff\\item" 
projectPath="c:\\Path\\to\\git\\project1,c:\\Path\\to\\git\\project" 
gitBashPath="C:\\Program Files\\Git\\bin\\bash.exe"

java -jar + application.properties at at the same location as jar file

If there are application.properties file at the same location as your jar file then program can be run as follows:

java -jar Gipter.jar

Sample application.properties:

author=Anakin Skywalker
itemPath=c:\\Path\\to\\git\\diff\\item
projectPath=c:\\Git\\Project1,c:\\Git\\Project2
gitBashPath=C:\\Path\\to\\Git\\bash.exe

Tip

If one runs program with parameters and application.properties at the same time, then configuration from file has higher priority. Generated file name by default is String.format("%s-week-%d.txt", now.getMonth().name(), weekNumber).toLowerCase(). It can be switched to String.format("diff-%s-%s.txt", startDate, endDate) by setting any value to parameter itemFileName.

Params description

author - the git user who committed the code.

committerEmail - email of the user who committed the code.

itemPath - path where file with git diff should be saved.

projectPath - comma separated project paths containing .git folder.

gitBashPath - path to git bash. Mandatory for Windows platform.

minusDays - when to start calculating git diff given in days. Default value is 7.

startDate - start date of diff given in format yyyy/MM/dd.

endDate - end date of diff given in format yyyy/MM/dd.

itemFileName - if given then different item file name will be produced. By default item file name is String.format("%s-week-%d.txt", now.getMonth().name(), weekNumber).toLowerCase()

About

Generates git diff files from given repositories

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages