Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg2011-06-17 02:32:09 -0400
committerMatthias Sohn2011-06-17 02:32:09 -0400
commit9ddb5f1e04cb23ab18e52db08c015d9926df3ca1 (patch)
tree2ffd2e36a22fdba0b9b737119ec0476ddf4598c2 /org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
parent719370df91eb06538fdd34e46fa795487b018162 (diff)
downloadegit-9ddb5f1e04cb23ab18e52db08c015d9926df3ca1.tar.gz
egit-9ddb5f1e04cb23ab18e52db08c015d9926df3ca1.tar.xz
egit-9ddb5f1e04cb23ab18e52db08c015d9926df3ca1.zip
Add support for git variables in launchers
This adds git_dir, git_work_tree, git_repo_relative_path and git_branch. They all work on the selected or named resource, i.e. ${git_branch} would return the current branch in the (first) selected project. ${git_branch:org.eclipse.jgit/.project} would return the current branch of the main JGit repository in the workspace. The code to pick the selected resource is stolen from Chris Aniszczyk's commit on a similar topic. Change-Id: Idad98f57440eb3b083ffd1be0f382bdac33963e3 Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
index 8f3afc422..aad6db950 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/uitext.properties
@@ -1294,6 +1294,9 @@ SwitchToMenu_OtherMenuLabel=&Other...
GitActionContributor_ExpandAll=Expand All
GitActionContributor_Push=Push
GitActionContributor_Pull=Pull
+GitVariableResolver_InternalError=Internal error
+GitVariableResolver_NoSelectedResource=No selected resource
+GitVariableResolver_VariableReferencesNonExistentResource=Variable references non-existent resource : {0}
OpenWorkingFileAction_text=&Open
OpenWorkingFileAction_tooltip=Open working file

Back to the top