Application for calculating the number of days spent committing to a git repository.
Go to file
Nils Norman Haukås d6ebca279e update readme, add nogithub badge 2024-01-22 20:10:50 +01:00
gradle/wrapper initial commit 2015-11-17 09:23:14 +01:00
src/main Even more refactoring. 2015-11-19 12:54:06 +01:00
.gitignore initial commit 2015-11-17 09:23:14 +01:00
build.gradle initial commit 2015-11-17 09:23:14 +01:00
git-log2json.sh initial commit 2015-11-17 09:23:14 +01:00
gradlew initial commit 2015-11-17 09:23:14 +01:00
gradlew.bat initial commit 2015-11-17 09:23:14 +01:00
nogithub-badge.svg update readme, add nogithub badge 2024-01-22 20:10:50 +01:00
readme.md update readme, add nogithub badge 2024-01-22 20:10:50 +01:00
settings.gradle initial commit 2015-11-17 09:23:14 +01:00

readme.md

Please don't upload to GitHub

An application for calculating days spent committing to a git project.

Usage

  1. Run the provided git-log2json.sh script inside the repositories from which you want to export the git history (Original source). You'll need to pipe the script output to a .json file.
  2. Place the exported .json file(s) inside src/resources/exported-commit-logs/
  3. Run gradlew -q run -Pargs="commitAuthorToLookFor@email.org" in the project folder to run the application. This should output the number of days you have spent committing code to a project.

How it's calculated

  1. Gather all the commits
  2. Parse the dates, stripping away hours and minutes.
  3. Filter out commits owned by author
  4. Get all the dates and remove duplicates.
  5. Count the dates (number of unique days committing code).

License: MIT

Copyright (c) 2015 Nils Norman Haukås

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.