On 10 Feb 2010, at 11:36, Matthias Sohn wrote:
I am on the way to extend Shawn's script http://repo.or.cz/w/jgit.git/commit/53a2cc3f6144ddcc10954d3abf68a5b90ed95248
he used to fix the license headers for the initial contribution. This script uses git blame to find out which authors did code changes.
I plan to run this under git filter-branch to fix the headers in all revisions. I'll post the script as soon as it does anything reasonable.
This might take a bit since it's been a while since I used Perl last time. If you are faster your help is of course appreciated :)
That's great. Anything we can do to make the transition easier (especially for Shawn) is most appreciated :-)
Having said that, I'm no Perl guru. If the script that you're working on is making progress, then I'm happy for you to continue.
Using the commit author information for the copyright is straight forward, the tricky part I am not yet sure about is how to honor explicitly
added copyright statements which do not match the commit author (e.g. author could be "Joe Developer <joe@xxxxxxx>" but copyrights
claimed for his changes could be owned by his company "Joe Inc." but then we should not add Joe Developer in the copyright statement).
What do we do in the iplog for this kind of thing? Do we record the commits as Employer, or Employee? If there's a lookup table of names-to-companies, perhaps we can substitute that on a day-by-day basis.