I have seen several different posts which suggest "code contributed to a repository inherits the license of the repository contributed to". It is not clear to me what this means when there is no license.
A repository with no license is "All rights reserved". That is, the owner of the repository is sole owner of all its code. If someone else has a repository, and I submit a pull request which is merged successfully, does that code, which is part of the repository to which they reserve all rights, belong to them?
What does the process of submitting a pull request entail, in terms of copyright ownership? It seems like submitting a pull request (asking the owner of the upstream repository to incorporate my code) involves an implied permission to incorporate my code. But what does that mean beyond that? How does ownership work on code that becomes a mix of multiple contributors' creations, after years of tweaks and adjustments?
Ultimately, if applying a license to an unlicensed repository, does the owner of the repository need permission from contributors? Why, if they reserve all rights?
If a repository has a license, such as MIT, the license will say "You may use this code as long as you do XYZ". If the contributor uses such a license, the upstream repository has that permission. What permission is granted, if a contributor's submission has no license? If I merge a pull request from someone, can they retract the code I've merged at an arbitrary time in the future?