Description
openedon Jan 13, 2018
This is a feature request.
I work in several projects, mostly Docker-related, where I need to edit code inside git repositories that are ignored inside the main one.
Example file tree:
main-repo/
.git/
.gitignore # <-- Here we ignore the `external_sources` folder
src/
[files]
external_sources/
extra1/
.git/
[files]
extra2/
.git/
[files]
The reasoning behind this is an aggregated Docker project that includes sources from many unrelated places. Developing means mounting local code, changing it, and pushing code to all repos (the main one and the ones under external_sources
, where we mainly need to open PRs for that), but deploying to production means building a different Docker image where we download and merge external code instead of copying it from localhost.
Boilerplate apart, the feature request is to be able to find those subrepositories, even if they are untracked from the main one, and let the user use the full SCM interface (diffs, SCM section...) on them.
Right now, the diffs do not show because you are editing ignored code, and the SCM does not show these folders for the same reason.
I gues that now that multi-root workspaces are in, this shouldn't be so hard to achieve...
Thanks!