Skip to content

Commit

Permalink
Added Most Changed and Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wbsimms committed Mar 27, 2016
1 parent da6ba23 commit dfe2124
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 32 deletions.
5 changes: 5 additions & 0 deletions GitStats.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitStats.Lib", "src\GitStat
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GetStats.Lib.Test", "src\GetStats.Lib.Test\GetStats.Lib.Test.csproj", "{64D54BFE-10B2-4078-A484-94FCF8952B40}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C28051A3-578C-43B5-9689-F82217D58C14}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
69 changes: 37 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
# GitStats
## Show code status on your local Git repository
Currently, this only shows a Brittles report. This is the files that change most often. Likely this indicates areas of fragility in the code. These are good areas for target refactoring, unit testing, and code coverage.

### Usage
GitStats.exe <path to local git repo> <commit count> [branch name]

### Show status for the last 200 commits on your master branch
```
GitStats.exe 'C:\projects\GitStats\' 200 master
```

### Show status for the last 200 commits on your current branch
```
GitStats.exe 'C:\projects\GitStats\' 200
```

### Example output
```
FileName NumberOfTimesChanged PercentTimesChanged
xxx\Web.config 15 30.0
xxx\BLL\Services\Orders\OrderDuplicationService.cs 15 30.0
xxx\DAO\OrderDAO.cs 11 22.00
xxx\Payment.aspx.cs 6 12.00
xxx\OrderLogistics.aspx 5 10.0
xxx\DAO\GiftCertificateDAO.cs 5 10.0
xxx\BLL\Services\Payments\GiftCertificate\GiftCertificate.cs 5 10.0
xxx\Services\Orders.asmx.cs 4 8.00
xxx\BLL\Services\Cart\CartValidationService.cs 4 8.00
xxx\BLL\Services\Fees\FeeService.cs 4 8.00
xxx\UserControls\OrderDetails\CartSummary\ConfirmOrderSummary.ascx 3 6.00
```
# GitStats
## Show code status on your local Git repository
Currently, this shows a Brittles report. The Brittles report contains three sub-reports:

1. MostChanged - These are the files which change most often. Likely this indicates areas of fragility in the code. These are good areas for target refactoring, unit testing, and code coverage.
1. MostChanges
1. Adds - The files with the most additions. Be wary of files which grow quickly. You might be putting too much logic in them.
1. Deletes - The files with the most deletions. These are usually good changes and indicate good refactoring practices.

### Usage
GitStats.exe <path to local git repo> <commit count> [branch name]

### Show status for the last 200 commits on your master branch
```
GitStats.exe 'C:\projects\GitStats\' 200 master
```

### Show status for the last 200 commits on your current branch
```
GitStats.exe 'C:\projects\GitStats\' 200
```

### Example output
```
FileName NumberOfTimesChanged PercentTimesChanged
xxx\Web.config 15 30.0
xxx\BLL\Services\Orders\OrderDuplicationService.cs 15 30.0
xxx\DAO\OrderDAO.cs 11 22.00
xxx\Payment.aspx.cs 6 12.00
xxx\OrderLogistics.aspx 5 10.0
xxx\DAO\GiftCertificateDAO.cs 5 10.0
xxx\BLL\Services\Payments\GiftCertificate\GiftCertificate.cs 5 10.0
xxx\Services\Orders.asmx.cs 4 8.00
xxx\BLL\Services\Cart\CartValidationService.cs 4 8.00
xxx\BLL\Services\Fees\FeeService.cs 4 8.00
xxx\UserControls\OrderDetails\CartSummary\ConfirmOrderSummary.ascx 3 6.00
```

0 comments on commit dfe2124

Please sign in to comment.