Skip to content

Use realpath #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 23, 2015
Merged

Conversation

forivall
Copy link
Contributor

I have a lot of projects under symlinks, and using this package will cause the folder entry to be duplicated in the list of root folders, one for the symlinked path and one for the realpath. This change will cause the realpath to replace the symlinked path. The other option would be to try to preserve the symlinked path, but that is harder to implement.

I also added a quick change to only update the list of roots if it actually changes, since the vcs status gets refreshed every time a new file is opened if the list of roots changes.

And, I tweaked the case of the cakefile (to "Cakefile") since cake complains on linux if the casing isn't correct.

Let me know if I should use the ruby style of function invokation instead.

forivall added 4 commits July 18, 2015 02:49
the vcs status will be updated if the paths get changed, and this causes
a lot of unnecessary work
JavascriptIsMagic added a commit that referenced this pull request Sep 23, 2015
Use realpath for symlink resolution
@JavascriptIsMagic JavascriptIsMagic merged commit 31f7f48 into JavascriptIsMagic:master Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants