Skip to content

chore(git): get_project_root cache cwd_to_project_root after checking existence #1457

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 1 commit into from
Jul 25, 2022

Conversation

alex-courtis
Copy link
Member

I'm glad I added profiling for git utils... we call get_toplevel all the time!

get_project_root stopped caching cwd_to_project_root; add to that cache.

Check that cwd exists to deal with badly behaved shells e.g. #549 (comment)

@kyazdani42 kyazdani42 merged commit 86b9da5 into master Jul 25, 2022
@kyazdani42 kyazdani42 deleted the chore/git-cwd-to-project-root-check-and-cache branch July 25, 2022 09:27
Almo7aya pushed a commit to Almo7aya/nvim-tree.lua that referenced this pull request Oct 11, 2022
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