Coder Social home page Coder Social logo

wst021 / dotnet-gitstats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dengyakui/dotnet-gitstats

1.0 2.0 0.0 8.9 MB

A toolkit to generate code statistic for git, using DotNet.

Home Page: https://leansoftX.com

Batchfile 2.62% C# 97.38%

dotnet-gitstats's Introduction

DotNet GitStats

DotNet GitStats CI

DotNet GitStats is a toolkit to build code statistic for git, it's built on top of libgit2 using DotNet. DotNet GitStats provide cross-platform command line tools that can be run on Windows, MacOS and Linux.

You can use this tool to generate a CVS file which can ben consumed easily using Excel, Power BI and any other data process tools. A sample Power BI report is provided with the repo.

Power BI Report Sample

How it works

libgit2sharp is a wonderful tool, it expose every git operation interface to DotNet and Mono which makes DotNet GitStats possible.

DotNet GitStats use libgit2sharp to extract git log information and calculate line changes between commits, for example, lines added and lines deleted.

For ease of use, CVS or JSON formats are supported for you to analyze or visualize.

Supported Platform

  • Windows
  • Linux
  • MacOS

Usage

# windows
./DotNetGitStats.exe -d <local repo dir> -o <output file path>

# linux
./DotNetGitStats -d <repo dir> -o <output path>

# maxOS
./DotNetGitStats -d <repo dir> -o <output path>

Example

# get a csv result file
./DotNetGitStats.exe -d repos\BoatHouse -o result.csv

# get a json result file
./DotNetGitStats.exe -d repos\BoatHouse -o result.json

Data Columns Provided in Output File

  • CommitHash current git comit id
  • AuthorName current commit's author name
  • AuthorEmail current commit's author email
  • MessageShort current commit's msg in short line format
  • AuthorDate commit.Author.When.DateTime
  • LinesAdded numbers of line added compared with parent commit
  • LinesDeleted numbers of line added compared with parent commit

Generated File Sample

csv sample

Roadmap

DotNet GitStats is still at very early stage, please feel free to support issue or PR. Here are some ideas we are exploring down the track.

  • Set up Github action for CI
  • Add README content
  • Create Power BI report using csv file

dotnet-gitstats's People

Contributors

dengyakui avatar quintos955 avatar ups216 avatar zhouwenyang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.