git-current-lines-by-author.sh
Regression from commit 8c73b16f5f18f3bc1dbf9ff6c1475db56b44d304 (DOCX import: declare wpg as a supported feature, 2013-12-05), the problem was that. Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License. This license lets others distribute, remix, tweak, and build upon your work, even commercially, as long as they credit you for the original creation. This is the most accommodating of the CC licenses offered. Analytics cookies. We use analytics cookies to understand how you use our websites so we can make them better, e.g. They're used to gather information about the pages you visit and how many clicks you need to accomplish a task.
![Git Git](https://docs.dotscience.com/hugo/git-integration-for-code/git-2.png)
Short Bytes: Git Stats is a command line tool, which lets a developer see the contribution percentages of project contributors, see global or user commit activity, filtered by date and other options. An advanced code editor, dbg debugger, a database connectivity client, and secure deployment capabilities combine for a comprehensive IDE solution that meets most development needs. Key Features: Saves up to 75% of development time; PhpED 18.0 editing features including highlighting, easy code navigation, and PHP code folding. Playr 2 4.
git ls-files -z | xargs -0n1 git blame -e | perl -e 'while (<>) { s/^.*?<(.*?)>.*$/1/; print $_; }'| sort -f | uniq -c | sort -n |
git-history-lines-by-author.sh
git log --numstat --pretty=tformat:'%ae|%ai'| ruby stat.rb |
Git Statistics For Repo Per Author (Example)
stat.rb
require'date' |
defprint_stats(fmt,label,commits) |
a=r=0 |
days=[] |
commits.each{ |c| a += c[1];r += c[2];days << c[0]} |
c=days.uniq.size |
puts(fmt % [label,a,a / c,r,r / c,c,commits.size]) |
end |
defsum_added(arr) |
arr.inject(0){ |s,v| s + v[1]} |
end |
defsorted_stat_keys(stats) |
stats.keys.sort{ |a,b| sum_added(stats[a]) <=> sum_added(stats[b])} |
end |
stats=Hash.new{ |h,k| h[k]=[]} |
cur_author=nil |
cur_commit=nil |
while !STDIN.eof? |
line=STDIN.readline.strip |
ifm=line.match(/^(d+)s+(d+)s+S/) |
added,removed=m[1.2].map{ |x| x.to_i} |
cur_commit[1] += added |
cur_commit[2] += removed |
elsifm=line.match(/^([^-].+)|(.+)/) |
cur_author=m[1] |
cur_commit=[DateTime.parse(m[2]).strftime('%F'),0,0] |
stats[cur_author] << cur_commit |
end |
end |
maxlen=stats.keys.map{ |x| x.size}.max |
fmt='%-#{maxlen}s %10d %10d %10d %10d %10d %10d' |
puts('%-#{maxlen}s added add/day removed rem/day uniq days commits' % 'author') |
puts(') |
sorted_stat_keys(stats).eachdo |committer| |
commits=stats[committer].sort{ |a,b| a[1] <=> b[1]} |
print_stats(fmt,committer,commits) |
s=commits.size |
# reject 5% less- and 5% most-prolific commits |
lo,hi=(s * 0.05).round,(s * 0.95).round |
commits=commits[lo.hi] |
print_stats(fmt,' (center 90%)',commits) |
puts(') |
end |
Stat 18 0 – Git Integration With Finder Code Reader
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment