EGit variables [message #1269255] |
Tue, 11 March 2014 11:47  |
Eclipse User |
|
|
|
I make use of several EGit variables, particularly git_dir, git_branch and git_work_tree. I notice that these are not set in two contexts where it seems like they should be, or at least could be:
1) When the current selection is a file or directory in the one of Git Repository view entries
2) When the current selection is a Working Set, all of whose elements are projects that are part of the same Git repo.
Is this by design or is it an oversight? If by design, what's the rationale?
|
|
|
|
|
|
|
|
|
Re: EGit variables [message #1274438 is a reply to message #1273705] |
Fri, 21 March 2014 09:18  |
Eclipse User |
|
|
|
R Shapiro skrev 2014-03-20 13.05:
> If someone who already knows the code-base wants to give me approximate pointers in EGit I can probably figure out what changes would be required.
> Until I retire from my regular job I won't ever have the time to dig around trying to find the relevant places on my own in a code-base this large, particularly given the
> quirkiness of the Eclipse plugin APIs.
>
> I imagine most potential volunteers are in exactly the same position. Make it viable for us to help you and we will.
You want to look at GitVariableResolver, but then that's the easy part. You need to take care of the selection propertly. Not sure
how to do that, but I'd start by looking at the RepositoriesView and figure out how to get at it. You can find the view instance
using somthing like (from ShowRepositoriesViewActionHandler)
RepositoriesView view;
view = (RepositoriesView) PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage().showView(
RepositoriesView.VIEW_ID);
-- robin
|
|
|
Powered by
FUDForum. Page generated in 0.04006 seconds