IANAL but I think if such a thing would happen the code would need to be reverted, and the original commiter would be liable of code theft.
We will be drafting a CLA(contributor license agreement) soon for new commits, like many other open source projects have, to protect the project from this kind of actions.