-
Notifications
You must be signed in to change notification settings - Fork 362
Conversation
lib/directory-view.coffee
Outdated
if @directory.isRoot | ||
iconClass = 'icon-repo' if repoForPath(@directory.path)?.isProjectAtRoot() | ||
relPath = repoForPath(@directory.path)?.relativize(@directory.path + '/')?.length | ||
if relPath == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this can be unless relPath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless triggers in case of 'undefined' as well, but in this case it should trigger only if string is empty(but not undefined).
Right now Travis is reporting quite a few lint errors - you should fix those. In addition, this will need specs before it can be considered for merging. |
I've fixed all probs with existing specs and added 4 new ones (12 tests) covering all new functionality. Also created GIF showing what it is about |
This works for me, but the diffs in the gutter of changed files doesn't seem to work anymore. |
1feff36
to
4c5e4ca
Compare
Rebased on latest changes.
Well yeah, that should be fixed on git-plus (or whatever plugin you use) side. However git diffs with flat project structure should still work. |
This is awesome |
Sorry, but it looks like there's more conflicts 😬. |
Re-based again, with previous re-base accidentally took some extra files to commit(like packages.json), fixed that. |
@jarig Do modified files in sub-repositories show up when you press CTRL-T with your fix? |
Unfortunately not. Atom relies on the fact that there is only 1 GitProvider per project, but it should be changed to support multiple, then those providers can be updated from TreeView and in this way other things will work as well. |
@jarig fyi - I have a version (phord/tree-view@fad0086) that does manage to track modified file subscriptions successfully. But startup is slow. I'm working on improving it, though. Suggestions welcome. |
7ecd35c
to
8ffecbb
Compare
@phord , @mikekelly1 |
I'm not sure this is the right place for this fix. Ideally we'd make whatever changes are necessary in |
acdd32c
to
4fe615d
Compare
Why aren't you merging this? |
See my comment above: #469 (comment) |
Definitely a feature that's needed. Can we get the ball rolling on this one? |
7e4994f
to
59b2860
Compare
I've rebased all changes again and fixed all tests and linting. So now it's fully green. |
Hopefully this gets merged soon. |
Thanks for all the work that has been invested in this pull request. In our weekly triage meeting, we discussed this change and have decided to not accept it. Besides the caveats mentioned at the top, we don't feel that this change has been validated against a wide enough variety of use cases to not have hidden pitfalls. And because there have been significant usability impacts around this functionality before, we can't take the risk of unleashing this untested on the entire user base. Thanks again for the feedback and the work that you've put into this change. |
Is that real pitfall or theoretical? It never happened in real life, as current algo respects project boundaries. |
Fixes atom/atom#2203
This patch works quite well even with >200 nested .git repos, though with some limitations: