Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git lines of code per user

# its stupid long :P. but run this on linux in the root of your project :D
git log --shortstat --pretty="%cE" | sed 's/(.*)@.*/1/' | grep -v "^$" | awk 'BEGIN { line=""; } !/^ / { if (line=="" || !match(line, $0)) {line = $0 "," line }} /^ / { print line " # " $0; line=""}' | sort | sed -E 's/# //;s/ files? changed,//;s/([0-9]+) ([0-9]+ deletion)/1 0 insertions(+), 2/;s/(+)$/(+), 0 deletions(-)/;s/insertions?(+), //;s/ deletions?(-)//' | awk 'BEGIN {name=""; files=0; insertions=0; deletions=0;} {if ($1 != name && name != "") { print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net"; files=0; insertions=0; deletions=0; name=$1; } name=$1; files+=$2; insertions+=$3; deletions+=$4} END {print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net";}'
Comment

PREVIOUS NEXT
Code Example
Shell :: maven skip test 
Shell :: wslinux backup 
Shell :: ubuntu install nodejs 
Shell :: how to check crontab list 
Shell :: chmod: changing permissions of : Read-only file system and writeable 
Shell :: ipconfig in ubantu 
Shell :: git checkout certain files 
Shell :: if else in mac terminal 
Shell :: powershell create object 
Shell :: install socket.io 
Shell :: arch linux fonts 
Shell :: create gitignore 
Shell :: get linux distro from terminal 
Shell :: read line by using linnumber shell 
Shell :: git search all branches 
Shell :: git override local file with remote 
Shell :: git command line see logö 
Shell :: check folders sizes linux 
Shell :: ubuntu desktop sharing not working teams 
Shell :: intellij goto line 
Shell :: git push repo 
Shell :: ubuntu upgrade 
Shell :: count number of lines of code in git repo 
Shell :: push clone repo to own repo 
Shell :: choco install watchman 
Shell :: oh my zsh apple m1 
Shell :: install bpytop 
Shell :: windows proxy for local system 
Shell :: Failed to start firewalld - dynamic firewall daemon. 
Shell :: how to check if a python script is running 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =