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).
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 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"
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
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.
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()