Open jaraco opened 5 months ago
See https://github.com/jaraco/tempora/tree/experiment/full for an example, which I created by running the commands:
$ git checkout -b experiment/full
$ git rm -r docs tempora tests
$ git commit ...
$ git submodule add --force --branch experiment/coherent gh://jaraco/tempora
$ git commit ...
It occurred to me that despite the design of the essential layout, it might be possible to provide a compatible view of the repo that mimics the flat layout (or maybe the src layout) by leveraging subrepos (i.e. Git submodules).
And it makes me wonder, can a repo have a submodule into itself? I'm imagining something like:
In the
main
branch, store the code in the essential layout. In another branch, which I've yet to name, but maybefull
ormerged
, it would have all of the ancillary details manifest (perhaps by tooling) and then link to the code in a src layout or flat layout:This approach could provide a compatibility layer and branch where the ancillary details could be statically manifest for tools that require them (such as pip install from repo).