Is it possible to set Path to Git executable in plugin

已回答

I dynamically obtain path to git executable. Is it possible to read/set value from within plugin?

0

You can use 

GitVcsApplicationSettings.getInstance().setPathToGit(...); // application settings
GitVcsSettings.getInstance(project).setPathToGit(...); // per-project settings

You will need to depend on Git4Idea plugin to do this.
See https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html

0

Thank you. It works :-)

0

Hi Jesper,

please, can You show me how You programmatically obtained the path to git executable ?

For a plugin I'm developing I need the same but I cannot see how ....

Thanks,

Marco

0

请先登录再写评论。