atom/git-diff

No highlighting when git is not the home project

muuvmuuv opened this issue · 1 comments

Prerequisites

Description

When I have a git project (no supp module) inside my atom project (no git) I don't get any highlightings and I think it does not recognise the folder as a git project. I found some similiar topics, but that does not seem to fix my problem. I really want to use it that way.

Related answers:

Steps to Reproduce

  1. Create a project and put a git project inside a deeper structure
  2. Change something in the git project

Expected behavior: Shows diffs as in a normal git project when it is the root

Actual behavior: Does nothing

Reproduces how often: 100%

Versions

Atom:

Atom    : 1.27.0
Electron: 1.7.11
Chrome  : 58.0.3029.110
Node    : 7.9.0

APM:

apm  1.19.0
npm  3.10.10
node 6.9.5 x64
atom 1.27.0
python 2.7.15
git 2.15.1

Additional Information

Image of the structure: https://imgur.com/mLU7q0d

rsese commented

Thanks for contributing!

We noticed that this is a duplicate of #55 (and as mentioned there, the larger issue is atom/atom#2203) so you can subscribe there for updates if you'd like.

. I found some similiar topics, but that does not seem to fix my problem.

There's no fix or workaround for this behavior at the moment other than opening a Git project directly as the root of the project rather than opening a higher level directory.


Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.