I have code from a closed-source personal project of which I am the sole author. At work, I have come across situations where the code is useful.
I want to take a significant amount of code from my personal project, and put it in my company's code base. I am fine with them having full use without restriction of this code. However, I don't want them to have a legal right to the personal project from where this code came.
I believe I can publish this code under an MIT (or other) license before I put it in the company's code base and be fine, or even write some comments in a read.me. But I'm moreso wondering what happens if I just directly put the code in there.
If I put code from my personal project into the company's code base, what happens with the ownership of my personal project?