There's a small library in some big project (in a git repo), that I believe can be factored out of this big project, and so benefit people who need just the small library.
The small library is a subdirectory in the big project.
What's the best way to do it? Specifically, I'm asking how not to lose ties to the parent project, so I can:
- keep the history
- benefit from the upstream improvements,
- contribute to upstream improvements,
- (and of course, still be able to do however little changes I need to factor the library out of the big project's structure)
I was thinking of just forking and then moving and deleting items with git, but I'm not sure whether it'll preserve sufficient ties to the parent project.