Skip to content

Commit 5e070af

Browse files
Show contribution from all authors
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]>
1 parent 7507a46 commit 5e070af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

git-contr

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
filePath=$1
4+
5+
git blame --line-porcelain -C $filePath | sed -n 's/^author //p' |
6+
sort | uniq -c | sort -rn

0 commit comments

Comments
 (0)