-
Notifications
You must be signed in to change notification settings - Fork 128
gitignore doesn't work if atom is opened within subdirectory of git repo #120
Comments
See issue #111 - related? |
hmm, related in that the two issues kinda seem at odds to each other. My problem is that the parent dir gitignore isn't used. Example: .gitignore:
folder structure:
If I open |
+1, even adding .gitignore at client folder level does not help either. |
same issue here |
Having the same issue working in a sub directory of a repo that has its own
|
So this appears to be expected behaviour, according to the tests. I'm not sure if it's desired behaviour, though, as tree-view appears to flag the files as ignored. |
I definitely do not desire it :) |
It looks like tree-view's "Hide VCS Ignored Files" setting has a similar behaviour; items are only hidden when you are actually working in the root of the VCS. Ignored files are still greyed out, though, when you are working in a subdirectory. I'm not sure what the best solution would be... Maybe an extra setting? Or maybe the sorting should take ignored files into account and place them lower on the list? #133 is a PR that just disables the root folder check, so that would result in some inconsistencies between tree-view and fuzzy-finder. |
Surely they would ideally both act in the same way which the relevant VCS works? An extra setting would be strange, it'd be an option to be inconsistent and therefore not useful. Inconsistencies between tree-view and fuzzy-finder are okay if one is wrong. Just means an issue needs to be raised on the incorrect module (this one, in my view) |
The best solution I can think of is that we let it depend on the working directory. If that one is ignored by the VCS, we do not use the VCS ignores and just display everything. Otherwise, we inherit the VCS ignores. |
Sort of - a working directory which is itself .gitignored, but has its own .git folder (i.e. git submodule), should not process the parent .gitignore. It should use the .gitignore of the working directory (but not ignore it.) |
For another consistency point: find-in-project will respect the parent gitignore for this. |
#152 would, as a side-effect, make it super easy to either toggle this behavior or add an option for it. |
+1, this is a daily annoyance :( |
+1 This may be a duplicate of #252. |
I'm also running into this; any workarounds? I tried adding the directory to the root .gitignore and that didn't fix it. |
On Wed, Apr 5, 2017 at 5:35 AM Frankie Bagnardi ***@***.***> wrote:
I'm also running into this; any workarounds? I tried adding the directory
to the root .gitignore and that didn't fix it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPOhhp2_uVncrAUlp-qXpVQIL2ZPoeeks5rs2BvgaJpZM4FWe0m>
.
I have moved on from atom to vscode. It is just superior at every angle. It
does have awesome git integration. Just wanted to reply as I am in this
thread and got a notification.
--
Thanks,
Manish Patel
|
fuzzy-finder/spec/fuzzy-finder-spec.js Lines 1342 to 1356 in 60b1f0c
;( But why? Workaround is to use "Ignored Names" setting |
Sorry to add noise to this ... but yes, it's a daily annoyance. Both tree-view and fuzzy-finder (and nuclide-tree-view, which has it's own annoyance of not having an "ignored files" toggle) should all be singing from the same hymn sheet about which files are being shown, should be getting their file lists from a single service (if they aren't already) and that service should understand the VCS ignore rules with the same behaviour as the VCS. Yes, you need a flag to not ignore things so you can find that stuff sometimes. tree-view has a toggle for this, it should probably set the flag on the aforementioned common file listing service, so when you fuzzy-find with tree ignore off, you get shown ignored files too. |
I also find this behaviour unintuitive and frustrating. |
I don't know if this is a fuzzy-finder or a core problem, but if I'm in a subdirectory of a git repo when I open atom the gitignore is... ignored.
The text was updated successfully, but these errors were encountered: