Is there a git equivalent to svn file externals or any other way to emulate file-externals in git?
Background: We have a common project which we partly reference from other projects.
With git submodules - as far as I know - only repositories can be referenced - but not single sub-folders or files.
We basically need a distributed version control system that supports externals like svn.
It seems that git doesn't provide what we need. Am I right? Please prove me wrong.
Details:
We have one quite big svn repository that contains several projects. Each child-project depends on the base project. But each child-project only needs certain files or folders from the base project - depending on the child-project. So we utilize file- and folder externals with and without revision number to resolve those dependencies.
The base project has the following structure:
BASE
- libs
-- dll1.dll
- doc
-- howto.doc
- maps.csv
- cols.csv
- misc.ini
- fun.png
A child-project references the base project using externals like that:
"Base/libs@27" inspect
"Base/doc" doc
"Base/calibration/map.csv@14" map/default.csv
"Base/calibration/cols.csv@56" cols/default.csv