Skip to content

Commit

Permalink
Show contribution from all authors
Browse files Browse the repository at this point in the history
The SHELL script should be modified to list
all authors with contribution lines of code
for specified file.

* original author of each line of code in specified file shown
* USAGE: git contr filePath/fileName

Signed-off-by: Naveen Karippai
<[email protected]>
  • Loading branch information
NaveenKarippai committed Feb 20, 2016
1 parent 7507a46 commit 5e070af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-contr
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

filePath=$1

git blame --line-porcelain -C $filePath | sed -n 's/^author //p' |
sort | uniq -c | sort -rn

0 comments on commit 5e070af

Please sign in to comment.