From: Fabien C. <fab...@go...> - 2010-09-13 08:28:44
|
Just for the records, with Guillaume I have been trying to identify Rob's contribution to the Stellarium's source code (in the src/core/ directory). The procedure used was the following: - import all project in a git repo - use the powerful git blame to find out which lines were coded by Rob. Git is superior to bzr on this aspect because it recognizes code movement between files and manage properly files renaming properly. The command was: for f in $(find -name '*pp'); do echo "$f"; git blame -M -w -C -C $f; done > blame.txt - Select only the lines from Rob and from those lines remove the ones which are empty, with only comments or the ones which only contain a }. The command was: gawk '{ if ($0 ~ /digitalises/ && $0 !~ /.* .* \(.*\)((\ |\t)*\/\/|(\|\t)+$|(\ |\t)*}(\ |\t)*$)/) print }' blame.txt > realRobContrib.txt At the end, we end up with the attached file counting 404 lines. Most of the lines are related to the meteor code (Meteor and MeteorMgr classes) and constellations code, plus a bit of code for landscapes and planets (spherical landscape, shadows for moon eclipses) and minor contributions to various utility classes (Matrix initialization and some unused fader code). Although it probably gives a fairly good idea of Rob's contribution, it's difficult to be sure that nothing is missing, especially after several years of refactoring. On the other hand, does it makes sense to claim copyright on a subset of a line.. At the moment I don't plan to suppress Rob's code but I thought I'd dump this in the mailing list for the records, Fabien |