1 Mar
2012
1 Mar
'12
10:50 p.m.
Harald Welte wrote:
I just looked at the header, that was quicker.
yes, but also much less precise. doing a git log on a file and grep'ing for the author like:
git log --follow layer1/prim_fbsb.c | grep \^Auth | sort | uniq
is not that hard. Of course it only works in a repository that has the complete history.
The data set can be reduced by looking only at the latest state of the code: git blame file.c | \ sed 's,[^ ]\+ (\([^)]*\) [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} .*,\1,' | sort -u ..since this is what would be contributed to upstream anyway. //Peter