Skip to content

helm-browse-project: improve detecting project vc backend #2732

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

Closed

Conversation

taquangtrung
Copy link
Contributor

Hi,

This is an improvement on the previous code that I wrote to detect VC backend in a Git/Hg nested scenario.
I just discovered that the vc package can do the job well, and can be extended to other VC tools.

@thierryvolpiatto
Copy link
Member

thierryvolpiatto commented Jul 20, 2025 via email

@thierryvolpiatto
Copy link
Member

Merged with some modifications fixing issues mentioned above, also the last commit is not needed IMO I removed it.
Let me know if something wrong.
Thanks.

@thierryvolpiatto
Copy link
Member

Closing now.

@taquangtrung
Copy link
Contributor Author

@thierryvolpiatto: Thanks for integrating this PR!

Just a confirmation that this PR needs the setting (setq vc-deduce-backend-nonvc-modes t) to work properly.

By default, vc-deduce-backend-nonvc-modes was set to '(dired-mode shell-mode eshell-mode compilation-mode), which makes (vc-deduce-backend) return Nil for untracked files in a repository.

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