<p dir="auto">Howdy!</p>
<p dir="auto">Due to some unfortunate circumstances I'm currently stuck working on a project that's a subdirectory in part of a larger git repo. To open the entire repo directory would be a bit of a pain as well. I can work on the project just fine otherwise but none of the git features are currently available which is a disappointment.</p>
<p dir="auto">What's preventing Code from being able to use Git regardless of the opened project folder location (relative to the git root)?</p>
<p dir="auto">The contrived example layout:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/projects/engine/ &lt;--- root of the repo
/projects/engine/tools/my_application/ &lt;--- here sits a package.json, gulpfile.js, etc etc"><pre class="notranslate"><code class="notranslate">/projects/engine/ &lt;--- root of the repo
/projects/engine/tools/my_application/ &lt;--- here sits a package.json, gulpfile.js, etc etc
</code></pre></div>
<p dir="auto">Ubuntu 12.04, vscode 0.10.1</p>
<p dir="auto">The main reason I want this is to get around slow go to file indexing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117624487" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/55" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/55/hovercard" href="https://github.com/microsoft/vscode/issues/55">#55</a> by opening a sub-directory in Chromium so that indexing it doesn't take very long. Traversing the file path upwards to the root directory should be a fairly quick to perform action.</p>
<p dir="auto"><strong>Repro:</strong></p>
<ol dir="auto">
<li><code class="notranslate">mkdir -p foo/bar</code></li>
<li><code class="notranslate">cd foo</code></li>
<li><code class="notranslate">git init</code></li>
<li><code class="notranslate">Code bar</code></li>
<li>Open git integration tab</li>
</ol>
<p dir="auto"><strong>Expected:</strong><br>
Git integration realises that <code class="notranslate">bar</code> is part of the repo</p>
<p dir="auto"><strong>Actual:</strong><br>
Git integration disabled</p>