History table: let the user define which columns are shown
[egit/eclipse.git] / org.eclipse.egit.ui / plugin.xml
blobb965a4e8321488d7b4041b11e0206318384a9539
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin>
4    <extension-point id="commitMessageProvider" name="%CommitMessageProviderExtension-point.name" schema="schema/commitMessageProvider.exsd"/>
5    <extension-point id="cloneSourceProvider" name="%CloneSourceProviderExtension-point.name" schema="schema/cloneSourceProvider.exsd"/>
6    <extension-point id="branchNameProvider" name="%BranchNameProviderExtension-point.name" schema="schema/branchNameProvider.exsd"/>
7    <extension point="org.eclipse.core.runtime.preferences">
8       <initializer class="org.eclipse.egit.ui.PluginPreferenceInitializer"/>
9    </extension>
11    <extension point="org.eclipse.ui.importWizards">
12       <category name="%Git_clone_category"
13             id="org.eclipse.egit.ui.internal.clone.gitclonecategory"/>
14       <wizard name="%Git_clone_wizard"
15             icon="icons/obj16/import_obj.png"
16             class="org.eclipse.egit.ui.internal.clone.GitImportWizard"
17             id="org.eclipse.egit.ui.internal.clone.GitCloneWizard"
18             category="org.eclipse.egit.ui.internal.clone.gitclonecategory">
19             <description>%Git_clone_description</description>
20       </wizard>
21    </extension>
23    <extension point="org.eclipse.team.ui.configurationWizards">
24       <wizard name="%SharingWizard_name"
25             icon="icons/etool16/newconnect_wiz.png"
26             class="org.eclipse.egit.ui.internal.sharing.SharingWizard"
27             id="org.eclipse.egit.ui.internal.sharing.SharingWizard">
28       </wizard>
29    </extension>
31    <extension point="org.eclipse.ui.popupMenus">
32      <objectContribution id="org.eclipse.egit.ui.containerContributions"
33             objectClass="org.eclipse.core.resources.IContainer"
34             adaptable="true">
35          <filter name="projectPersistentProperty"
36                value="org.eclipse.team.core.repository=org.eclipse.egit.core.GitProvider">
37          </filter>
38          <action
39                class="org.eclipse.egit.ui.internal.actions.SynchronizeWorkspaceAction"
40                id="org.eclipse.egit.ui.internal.actions.SynchronizeWorkspace"
41                icon="$nl$/icons/obj16/synchronize.png"
42                label="%SynchronizeWorkspace_label"
43                menubarPath="team.main/group3"/>
44      </objectContribution>
45      <objectContribution
46             adaptable="true"
47             id="org.eclipse.egit.ui.resourceContributions"
48             objectClass="org.eclipse.core.resources.IResource">
49          <filter name="projectPersistentProperty"
50                value="org.eclipse.team.core.repository=org.eclipse.egit.core.GitProvider">
51          </filter>
52          <action
53                class="org.eclipse.egit.ui.internal.actions.ApplyPatchAction"
54                definitionId="org.eclipse.egit.ui.team.ApplyPatch"
55                enablesFor="*"
56                id="org.eclipse.egit.ui.internal.actions.applyPatch"
57                label="%ApplyPatchAction_label"
58                menubarPath="team.main/applyPatchGroup"
59                overrideActionId="org.eclipse.team.ui.applyPatch">
60          </action>
61          <action
62                class="org.eclipse.egit.ui.internal.actions.MergeToolAction"
63                definitionId="org.eclipse.egit.ui.team.MergeTool"
64                icon="icons/obj16/mergetool.png"
65                id="org.eclipse.egit.ui.internal.actions.MergeTool"
66                label="%MergeToolAction.label"
67                menubarPath="team.main/group4">
68          </action>
69       </objectContribution>
70    </extension>
72    <extension
73          point="org.eclipse.core.runtime.adapters">
74          <factory
75                adaptableType="org.eclipse.ui.IURIEditorInput"
76                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
77             <adapter type="java.io.File" />
78             <adapter type="org.eclipse.jgit.lib.Repository" />
79             <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
80          </factory>
81          <factory
82                adaptableType="org.eclipse.egit.core.internal.storage.GitFileHistoryProvider"
83                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
84             <adapter
85                   type="org.eclipse.team.ui.history.IHistoryPageSource">
86             </adapter>
87          </factory>
88          <factory
89                adaptableType="org.eclipse.core.resources.IResource"
90                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
91             <adapter
92                   type="org.eclipse.team.ui.history.IHistoryPageSource">
93             </adapter>
94          </factory>
95          <factory
96                adaptableType="org.eclipse.ui.IWorkingSet"
97                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
98             <adapter type="org.eclipse.team.ui.history.IHistoryPageSource" />
99             <adapter type="org.eclipse.jgit.lib.Repository" />
100          </factory>
101          <factory
102                adaptableType="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"
103                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
104             <adapter
105                   type="org.eclipse.team.ui.history.IHistoryPageSource">
106             </adapter>
107          </factory>
108          <factory
109                adaptableType="org.eclipse.egit.ui.internal.commit.RepositoryCommit"
110                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
111             <adapter
112                   type="org.eclipse.team.ui.history.IHistoryPageSource">
113             </adapter>
114          </factory>
115          <factory
116                adaptableType="org.eclipse.egit.ui.internal.history.HistoryPageInput"
117                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
118             <adapter
119                   type="org.eclipse.team.ui.history.IHistoryPageSource">
120             </adapter>
121          </factory>
122          <factory
123                adaptableType="org.eclipse.egit.ui.internal.reflog.ReflogItem"
124                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
125             <adapter
126                   type="org.eclipse.team.ui.history.IHistoryPageSource">
127             </adapter>
128          </factory>
129          <factory
130                adaptableType="org.eclipse.egit.core.internal.rebase.RebaseInteractivePlan$PlanElement"
131                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
132             <adapter
133                   type="org.eclipse.team.ui.history.IHistoryPageSource">
134             </adapter>
135          </factory>
136          <factory
137                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelRoot"
138                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
139             <adapter
140                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
141          </factory>
142          <factory
143                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelRepository"
144                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
145             <adapter
146                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
147          </factory>
148          <factory
149                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCommit"
150                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
151             <adapter
152                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
153          </factory>
154          <factory
155                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCache"
156                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
157             <adapter
158                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
159          </factory>
160          <factory
161                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelWorkingTree"
162                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
163             <adapter
164                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
165          </factory>
166          <factory
167                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelTree"
168                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
169             <adapter
170                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
171          </factory>
172          <factory
173                adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelBlob"
174                class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
175             <adapter
176                   type="org.eclipse.ui.model.IWorkbenchAdapter"/>
177          </factory>
178          <factory
179             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelObject"
180             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
181          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
182          <adapter type="org.eclipse.core.resources.IResource"/>
183       </factory>
184       <factory
185             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelRepository"
186             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
187          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
188       </factory>
189       <factory
190             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCommit"
191             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
192          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
193       </factory>
194       <factory
195             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelCache"
196             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
197          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
198       </factory>
199       <factory
200             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelWorkingTree"
201             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
202          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
203       </factory>
204       <factory
205             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelTree"
206             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
207          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
208          <adapter type="org.eclipse.core.resources.IResource"/>
209       </factory>
210       <factory
211             adaptableType="org.eclipse.egit.ui.internal.synchronize.model.GitModelBlob"
212             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
213          <adapter type="org.eclipse.core.resources.mapping.ResourceMapping"/>
214          <adapter type="org.eclipse.core.resources.IResource"/>
215       </factory>
216       <factory
217             adaptableType="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode"
218             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
219          <adapter type="org.eclipse.ui.model.IWorkbenchAdapter"/>
220       </factory>
221       <factory
222             adaptableType="org.eclipse.team.ui.history.IHistoryView"
223             class="org.eclipse.egit.ui.internal.factories.GitAdapterFactory">
224          <adapter type="org.eclipse.ui.part.IShowInSource"/>
225       </factory>
226       <factory
227             adaptableType="org.eclipse.egit.ui.internal.staging.StagingEntry"
228             class="org.eclipse.egit.ui.internal.staging.StagingEntryAdapterFactory">
229          <adapter type="org.eclipse.core.resources.IResource"/>
230          <adapter type="org.eclipse.core.runtime.IPath"/>
231          <adapter type="org.eclipse.jgit.lib.Repository"/>
232       </factory>
233    </extension>
235    <extension
236          point="org.eclipse.core.expressions.definitions">
237       <definition
238             id="org.eclipse.egit.ui.repositoryTreePathNode">
239          <and>
240             <count
241                   value="1">
242             </count>
243             <iterate>
244                <or>
245                   <instanceof
246                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
247                   </instanceof>
248                   <instanceof
249                         value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
250                   </instanceof>
251                   <instanceof
252                         value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
253                   </instanceof>
254                   <and>
255                      <instanceof
256                            value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
257                      </instanceof>
258                      <not>
259                         <test
260                               property="GitRepository.isBare">
261                         </test>
262                      </not>
263                   </and>
264                </or>
265             </iterate>
266          </and>
267       </definition>
268       <definition id="org.eclipse.egit.ui.repositoryTreePushFetchNode">
269          <and>
270             <count
271                   value="1">
272             </count>
273             <iterate
274                   ifEmpty="false"
275                   operator="and">
276                <or>
277                   <instanceof
278                         value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
279                   </instanceof>
280                   <instanceof
281                         value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
282                   </instanceof>
283                </or>
284             </iterate>
285          </and>
286       </definition>
287       <definition id="org.eclipse.egit.ui.repositoriesViewCanConfigureFetch">
288          <and>
289             <count
290                   value="1">
291             </count>
292             <iterate>
293                <or>
294                   <and>
295                      <instanceof
296                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
297                      </instanceof>
298                      <not>
299                         <test
300                               property="GitRepository.fetchExists">
301                         </test>
302                      </not>
303                   </and>
304                   <instanceof
305                         value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
306                   </instanceof>
307                </or>
308             </iterate>
309          </and>
310       </definition>
311       <definition id="org.eclipse.egit.ui.repositoriesViewCanConfigurePush">
312          <and>
313             <count
314                   value="1">
315             </count>
316             <iterate>
317                <or>
318                   <and>
319                      <instanceof
320                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
321                      </instanceof>
322                      <not>
323                         <test
324                               property="GitRepository.pushExists">
325                         </test>
326                      </not>
327                   </and>
328                   <instanceof
329                         value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
330                   </instanceof>
331                </or>
332             </iterate>
333          </and>
334       </definition>
335       <definition id="org.eclipse.egit.ui.singleRefNode">
336          <and>
337             <count
338                   value="1">
339             </count>
340             <iterate>
341                <instanceof
342                      value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
343                </instanceof>
344             </iterate>
345          </and>
346       </definition>
347       <definition id="org.eclipse.egit.ui.resourcesSingleRepository">
348          <or>
349             <test
350                   property="GitSelection.resourcesSingleRepository">
351             </test>
352             <with variable="activePart">
353                <instanceof
354                      value="org.eclipse.ui.IEditorPart">
355                </instanceof>
356                <with
357                      variable="activeEditorInput">
358                   <adapt
359                         type="org.eclipse.core.resources.IResource">
360                      <test
361                            property="GitResource.isShared">
362                      </test>
363                   </adapt>
364                </with>
365             </with>
366          </or>
367       </definition>
368       <definition id="org.eclipse.egit.ui.fileOrFolderInRepository">
369          <or>
370             <test
371                   property="GitSelection.fileOrFolderInRepository">
372             </test>
373             <with variable="activePart">
374                <instanceof
375                      value="org.eclipse.ui.IEditorPart">
376                </instanceof>
377                <with
378                      variable="activeEditorInput">
379                   <adapt
380                         type="org.eclipse.core.resources.IResource">
381                      <test
382                            property="GitResource.isShared">
383                      </test>
384                   </adapt>
385                </with>
386             </with>
387          </or>
388       </definition>
389       <definition id="org.eclipse.egit.ui.fileOrFolderPushToGerrit">
390          <or>
391             <test
392                   property="GitSelection.fileOrFolderInRepository"
393                   args="canPushToGerrit">
394             </test>
395             <with variable="activePart">
396                <instanceof
397                      value="org.eclipse.ui.IEditorPart">
398                </instanceof>
399                <with
400                      variable="activeEditorInput">
401                   <adapt
402                         type="org.eclipse.core.resources.IResource">
403                      <test
404                            property="GitResource.isShared">
405                      </test>
406                      <test
407                            property="GitResource.canPushToGerrit">
408                      </test>
409                   </adapt>
410                </with>
411             </with>
412          </or>
413       </definition>
414       <definition id="org.eclipse.egit.ui.fileOrFolderFetchFromGerrit">
415          <or>
416             <test
417                   property="GitSelection.fileOrFolderInRepository"
418                   args="canFetchFromGerrit">
419             </test>
420             <with variable="activePart">
421                <instanceof
422                      value="org.eclipse.ui.IEditorPart">
423                </instanceof>
424                <with
425                      variable="activeEditorInput">
426                   <adapt
427                         type="org.eclipse.core.resources.IResource">
428                      <test
429                            property="GitResource.isShared">
430                      </test>
431                      <test
432                            property="GitResource.canFetchFromGerrit">
433                      </test>
434                   </adapt>
435                </with>
436             </with>
437          </or>
438       </definition>
439       <definition
440             id="org.eclipse.egit.ui.resourcesAllInRepository">
441             <test
442                   property="GitSelection.resourcesAllInRepository">
443             </test>
444       </definition>
445       <definition
446             id="org.eclipse.egit.ui.singleRepositoryCommit">
447          <and>
448             <count value="1" />
449             <iterate>
450                <adapt type="org.eclipse.egit.ui.internal.commit.RepositoryCommit" />
451             </iterate>
452          </and>
453       </definition>
454       <definition
455             id="org.eclipse.egit.ui.singleFileCommit">
456          <and>
457             <count value="1" />
458             <iterate>
459                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
460             </iterate>
461             <with variable="activePart">
462                <test property="GitHistory.isSingleFileHistory" />
463             </with>
464          </and>
465       </definition>
466    </extension>
468    <extension point="org.eclipse.ui.preferencePages">
469       <page name="%GitPreferences_name"
470             category="org.eclipse.team.ui.TeamPreferences"
471             class="org.eclipse.egit.ui.internal.preferences.GitPreferenceRoot"
472             id="org.eclipse.egit.ui.GitPreferences">
473          <keywordReference
474                id="org.eclipse.egit.ui.keyword.git">
475          </keywordReference>
476          <keywordReference
477                id="org.eclipse.egit.ui.keyword.refresh">
478          </keywordReference>
479       </page>
480       <page name="%GitPreferences_ProjectPreferencePage_name"
481             category="org.eclipse.egit.ui.GitPreferences"
482             class="org.eclipse.egit.ui.internal.preferences.ProjectsPreferencePage"
483                 id="org.eclipse.egit.ui.internal.preferences.ProjectsPreferencePage" >
484             <keywordReference
485                   id="org.eclipse.egit.ui.keyword.git">
486             </keywordReference>
487       </page>
488       <page name="%GitPreferences_WindowCachePreferencePage_name"
489             category="org.eclipse.egit.ui.GitPreferences"
490             class="org.eclipse.egit.ui.internal.preferences.WindowCachePreferencePage"
491             id="org.eclipse.egit.ui.internal.preferences.WindowCachePreferencePage" >
492             <keywordReference
493                   id="org.eclipse.egit.ui.keyword.git">
494             </keywordReference>
495       </page>
496       <page name="%GitPreferences_DateFormatPreferencePage_name"
497             category="org.eclipse.egit.ui.GitPreferences"
498             class="org.eclipse.egit.ui.internal.preferences.DateFormatPreferencePage"
499             id="org.eclipse.egit.ui.internal.preferences.DateFormatPreferencePage" >
500             <keywordReference
501                   id="org.eclipse.egit.ui.keyword.git">
502             </keywordReference>
503             <keywordReference
504                   id="org.eclipse.egit.ui.keyword.date">
505             </keywordReference>
506       </page>
507           <page name="%GitPreferences_DecoratorPreferencePage_name"
508             category="org.eclipse.egit.ui.GitPreferences"
509             class="org.eclipse.egit.ui.internal.preferences.GitDecoratorPreferencePage"
510             id="org.eclipse.egit.ui.internal.preferences.GitDecoratorPreferencePage" >
511             <keywordReference
512                   id="org.eclipse.egit.ui.keyword.git">
513             </keywordReference>
514       </page>
515       <page
516          category="org.eclipse.egit.ui.GitPreferences"
517          class="org.eclipse.egit.ui.internal.preferences.GlobalConfigurationPreferencePage"
518          id="org.eclipse.egit.ui.internal.preferences.GlobalConfigurationPreferencePage"
519          name="%ConfigurationPage.name">
520       <keywordReference
521             id="org.eclipse.egit.ui.keyword.git">
522       </keywordReference>
523       </page>
524       <page
525             category="org.eclipse.egit.ui.GitPreferences"
526             class="org.eclipse.egit.ui.internal.preferences.CommittingPreferencePage"
527             id="org.eclipse.egit.ui.internal.preferences.CommittingPreferencePage"
528             name="%GitPreferences_CommittingPreferencePage_name">
529          <keywordReference
530                id="org.eclipse.egit.ui.keyword.git">
531          </keywordReference>
532       </page>
533       <page
534             category="org.eclipse.egit.ui.GitPreferences"
535             class="org.eclipse.egit.ui.internal.preferences.StagingViewPreferencePage"
536             id="org.eclipse.egit.ui.internal.preferences.StagingViewPreferencePage"
537             name="%GitPreferences_StagingViewPreferencePage_name">
538          <keywordReference
539                id="org.eclipse.egit.ui.keyword.git">
540          </keywordReference>
541       </page>
542       <page
543             category="org.eclipse.egit.ui.GitPreferences"
544             class="org.eclipse.egit.ui.internal.preferences.DialogsPreferencePage"
545             id="org.eclipse.egit.ui.internal.preferences.DialogsPreferencePage"
546             name="%DialogsPreferencePage.name">
547          <keywordReference
548                id="org.eclipse.egit.ui.keyword.git">
549          </keywordReference>
550       </page>
551       <page
552             category="org.eclipse.egit.ui.GitPreferences"
553             class="org.eclipse.egit.ui.internal.preferences.SynchronizePreferencePage"
554             id="org.eclipse.egit.ui.internal.preferences.SynchronizePreferencePage"
555             name="%SynchronizePreferencePage.name">
556          <keywordReference
557                id="org.eclipse.egit.ui.keyword.git">
558          </keywordReference>
559       </page>
560       <page
561             category="org.eclipse.egit.ui.GitPreferences"
562             class="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
563             id="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
564             name="%HistoryPreferencePage.name">
565          <keywordReference
566                id="org.eclipse.egit.ui.keyword.git">
567          </keywordReference>
568       </page>
569       <page
570             category="org.eclipse.egit.ui.internal.preferences.HistoryPreferencePage"
571             class="org.eclipse.egit.ui.internal.preferences.HistoryColumnsPreferencePage"
572             id="org.eclipse.egit.ui.internal.preferences.HistoryColumnsPreferencePage"
573             name="%HistoryColumnsPreferencePage.name">
574          <keywordReference
575                id="org.eclipse.egit.ui.keyword.git">
576          </keywordReference>
577          <keywordReference
578                id="org.eclipse.egit.ui.keyword.history">
579          </keywordReference>
580       </page>
581    </extension>
583    <extension point="org.eclipse.ui.propertyPages">
584       <page
585             name="%Git"
586             class="org.eclipse.egit.ui.internal.preferences.GitProjectPropertyPage"
587             id="org.eclipse.egit.ui.preferences.GitProjectPropertyPage">
588          <enabledWhen>
589             <adapt type="org.eclipse.core.resources.IResource">
590                <test
591                      property="org.eclipse.core.resources.projectPersistentProperty"
592                      args="org.eclipse.team.core.repository, org.eclipse.egit.core.GitProvider">
593                </test>
594             </adapt>
595          </enabledWhen>
596       </page>
597       <page
598             class="org.eclipse.egit.ui.internal.repository.RepositoryPropertyPage"
599             id="org.eclipse.egit.ui.property.RepositoryPropertyPage"
600             name="%RepositoryConfigPropertyPage">
601          <enabledWhen>
602             <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
603          </enabledWhen>
604       </page>
605       <page
606             class="org.eclipse.egit.ui.internal.repository.RepositoryStatisticsPage"
607             id="org.eclipse.egit.ui.property.RepositoryStatisticsPage"
608             name="%RepositoryStatisticsPage">
609          <enabledWhen>
610             <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
611          </enabledWhen>
612       </page>
613    </extension>
615    <extension point="org.eclipse.ui.keywords">
616       <keyword
617             id="org.eclipse.egit.ui.keyword.git"
618             label="%GitKeyword_label">
619       </keyword>
620       <keyword
621             id="org.eclipse.egit.ui.keyword.refresh"
622             label="%GitKeyword_Refresh_label">
623       </keyword>
624       <keyword
625             id="org.eclipse.egit.ui.keyword.date"
626             label="%GitKeyword_Date_label">
627       </keyword>
628       <keyword
629             id="org.eclipse.egit.ui.keyword.history"
630             label="%GitKeyword_History_label">
631       </keyword>
632    </extension>
634    <extension point="org.eclipse.ui.decorators">
635       <decorator
636             lightweight="true"
637             adaptable="true"
638             label="%Decorator_name"
639             class="org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator"
640             state="true"
641             location="BOTTOM_RIGHT"
642             id="org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator">
643             <enablement>
644               <objectClass name="org.eclipse.core.resources.mapping.ResourceMapping"/>
645             </enablement>
646          <description>
647             %Decorator_description
648          </description>
649       </decorator>
650    </extension>
652    <extension point="org.eclipse.ui.themes">
653       <themeElementCategory
654             id="org.eclipse.egit.ui.GitTheme"
655             label="%Theme_label"/>
656       <fontDefinition
657             id="org.eclipse.egit.ui.CommitGraphNormalFont"
658             categoryId="org.eclipse.egit.ui.GitTheme"
659             label="%Theme_CommitGraphNormalFont_label"
660             defaultsTo="org.eclipse.jface.dialogfont">
661          <description>
662             %Theme_CommitGraphNormalFont_description
663          </description>
664       </fontDefinition>
665       <fontDefinition
666             id="org.eclipse.egit.ui.CommitGraphHighlightFont"
667             categoryId="org.eclipse.egit.ui.GitTheme"
668             label="%Theme_CommitGraphHighlightFont_label"
669             defaultsTo="org.eclipse.jface.dialogfont">
670          <description>
671             %Theme_CommitGraphHighlightFont_description
672          </description>
673       </fontDefinition>
674       <fontDefinition
675             id="org.eclipse.egit.ui.CommitMessageFont"
676             categoryId="org.eclipse.egit.ui.GitTheme"
677             label="%Theme_CommitMessageFont_label"
678             defaultsTo="org.eclipse.jface.textfont">
679          <description>
680             %Theme_CommitMessageFont_description
681          </description>
682       </fontDefinition>
683         <colorDefinition
684         id="org.eclipse.egit.ui.UncommittedChangeForegroundColor"
685         categoryId="org.eclipse.egit.ui.GitTheme"
686         label="%Theme_UncommittedChangeForegroundColor_label"
687         value="COLOR_LIST_FOREGROUND">
688         <description>
689         %Theme_UncommittedChangeForegroundColor_description
690         </description>
691       </colorDefinition>
692       <colorDefinition
693         id="org.eclipse.egit.ui.UncommittedChangeBackgroundColor"
694         categoryId="org.eclipse.egit.ui.GitTheme"
695         label="%Theme_UncommittedChangeBackgroundColor_label"
696         value="COLOR_LIST_BACKGROUND">
697         <description>
698         %Theme_UncommittedChangeBackgroundColor_description
699         </description>
700       </colorDefinition>
701       <fontDefinition
702         id="org.eclipse.egit.ui.UncommittedChangeFont"
703         categoryId="org.eclipse.egit.ui.GitTheme"
704         label="%Theme_UncommittedChangeFont_label">
705         <description>
706         %Theme_UncommittedChangeFont_description
707         </description>
708       </fontDefinition>
709       <fontDefinition
710             categoryId="org.eclipse.egit.ui.GitTheme"
711             defaultsTo="org.eclipse.jface.textfont"
712             id="org.eclipse.egit.ui.CommitMessageEditorFont"
713             label="%Theme_CommitMessageEditorFont_label">
714          <description>
715             %Theme_CommitMessageEditorFont_description
716          </description>
717       </fontDefinition>
718       <colorDefinition
719             categoryId="org.eclipse.egit.ui.GitTheme"
720             id="org.eclipse.egit.ui.DiffHunkBackgroundColor"
721             isEditable="true"
722             label="%Theme_DiffHunkBackgroundColor_label"
723             value="234,242,245">
724          <description>
725             %Theme_DiffHunkBackgroundColor_description
726          </description>
727       </colorDefinition>
728       <colorDefinition
729             categoryId="org.eclipse.egit.ui.GitTheme"
730             id="org.eclipse.egit.ui.DiffHunkForegroundColor"
731             isEditable="true"
732             label="%Theme_DiffHunkForegroundColor_label"
733             value="153,153,153">
734          <description>
735             %Theme_DiffHunkForegroundColor_description
736          </description>
737       </colorDefinition>
738       <colorDefinition
739             categoryId="org.eclipse.egit.ui.GitTheme"
740             id="org.eclipse.egit.ui.DiffAddBackgroundColor"
741             isEditable="true"
742             label="%Theme_DiffAddBackgroundColor_label"
743             value="221,255,221">
744          <description>
745             %Theme_DiffAddBackgroundColor_description
746          </description>
747       </colorDefinition>
748       <colorDefinition
749             categoryId="org.eclipse.egit.ui.GitTheme"
750             id="org.eclipse.egit.ui.DiffAddForegroundColor"
751             isEditable="true"
752             label="%Theme_DiffAddForegroundColor_label"
753             value="COLOR_BLACK">
754          <description>
755             %Theme_DiffAddForegroundColor_description
756          </description>
757       </colorDefinition>
758       <colorDefinition
759             categoryId="org.eclipse.egit.ui.GitTheme"
760             id="org.eclipse.egit.ui.DiffRemoveBackgroundColor"
761             isEditable="true"
762             label="%Theme_DiffRemoveBackgroundColor_label"
763             value="255,221,221">
764          <description>
765             %Theme_DiffRemoveBackgroundColor_description
766          </description>
767       </colorDefinition>
768       <colorDefinition
769             categoryId="org.eclipse.egit.ui.GitTheme"
770             id="org.eclipse.egit.ui.DiffRemoveForegroundColor"
771             isEditable="true"
772             label="%Theme_DiffRemoveForegroundColor_label"
773             value="COLOR_BLACK">
774          <description>
775             %Theme_DiffRemoveForegroundColor_description
776          </description>
777       </colorDefinition>
778       <colorDefinition
779             categoryId="org.eclipse.egit.ui.GitTheme"
780             id="org.eclipse.egit.ui.DiffHeadlineForegroundColor"
781             isEditable="true"
782             label="%Theme_DiffHeadlineForegroundColor_label"
783             value="COLOR_BLACK">
784          <description>
785             %Theme_DiffHeadlineForegroundColor_description
786          </description>
787       </colorDefinition>
788       <colorDefinition
789             categoryId="org.eclipse.egit.ui.GitTheme"
790             id="org.eclipse.egit.ui.DiffHeadlineBackgroundColor"
791             isEditable="true"
792             label="%Theme_DiffHeadlineBackgroundColor_label"
793             value="170,170,170">
794          <description>
795             %Theme_DiffHeadlineBackgroundColor_description
796          </description>
797       </colorDefinition>
798       <fontDefinition
799             categoryId="org.eclipse.egit.ui.GitTheme"
800             defaultsTo="org.eclipse.jface.textfont"
801             id="org.eclipse.egit.ui.DiffHeadlineFont"
802             label="%Theme_DiffHeadlineFont_label">
803          <description>
804             %Theme_DiffHeadlineFont_description
805          </description>
806       </fontDefinition>
807       <colorDefinition
808         id="org.eclipse.egit.ui.IgnoredResourceForegroundColor"
809         categoryId="org.eclipse.egit.ui.GitTheme"
810         label="%Theme_IgnoredResourceForegroundColor_label"
811         value="COLOR_LIST_FOREGROUND">
812         <description>
813         %Theme_IgnoredResourceForegroundColor_description
814         </description>
815       </colorDefinition>
816       <colorDefinition
817         id="org.eclipse.egit.ui.IgnoredResourceBackgroundColor"
818         categoryId="org.eclipse.egit.ui.GitTheme"
819         label="%Theme_IgnoredResourceBackgroundColor_label"
820         value="COLOR_LIST_BACKGROUND">
821         <description>
822         %Theme_IgnoredResourceBackgroundColor_description
823         </description>
824       </colorDefinition>
825       <fontDefinition
826             categoryId="org.eclipse.egit.ui.GitTheme"
827             id="org.eclipse.egit.ui.IgnoredResourceFont"
828             label="%Theme_IgnoredResourceFont_label">
829         <description>
830         %Theme_IgnoredResourceFont_description
831         </description>
832       </fontDefinition>
833    </extension>
835 <!-- ********** QuickDiff text editor support ************** -->
836    <extension
837          point="org.eclipse.ui.workbench.texteditor.quickDiffReferenceProvider">
838       <referenceprovider
839             label="%GitRemoteQuickDiffProvider_label"
840             class="org.eclipse.egit.ui.internal.decorators.GitQuickDiffProvider"
841             id="org.eclipse.egit.ui.internal.decorators.GitQuickDiffProvider">
842       </referenceprovider>
843    </extension>
844    <extension
845          point="org.eclipse.ui.actionSets">
846       <actionSet
847            description="%GitActions_description"
848            id="org.eclipse.egit.ui.gitaction"
849            label="%GitActions_label"
850            visible="false">
851          <menu
852            id="org.eclipse.egit.ui.gitmenu"
853            label="%GitMenu_label"
854            path="additions">
855             <separator name="repositoryGroup" />
856              </menu>
857          <action
858            class="org.eclipse.egit.ui.internal.actions.PullFromUpstreamConfigAction"
859            definitionId="org.eclipse.egit.ui.team.Pull"
860            icon="icons/obj16/pull.png"
861            id="org.eclipse.egit.ui.actionpull"
862            label="%PullIntoCurrentBranchMenuLabel"
863            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
864            style="push"
865            toolbarPath="org.eclipse.egit.ui"
866            tooltip="%PullIntoCurrentBranch.tooltip">
867          </action>
868          <action
869            class="org.eclipse.egit.ui.internal.actions.PullWithOptionsAction"
870            definitionId="org.eclipse.egit.ui.team.PullWithOptions"
871            icon="icons/obj16/pull_with_options.png"
872            id="org.eclipse.egit.ui.actionpullwithoptions"
873            label="%PullWithOptions.name"
874            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
875            style="push"
876            toolbarPath="org.eclipse.egit.ui"
877            tooltip="%PullWithOptions.tooltip">
878          </action>
879                  <action
880            class="org.eclipse.egit.ui.internal.actions.SimpleFetchAction"
881            definitionId="org.eclipse.egit.ui.team.SimpleFetch"
882            icon="icons/obj16/fetch.png"
883            id="org.eclipse.egit.ui.actionfetch"
884            label="%FetchFromUpstreamAction.label"
885            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
886            style="push"
887            toolbarPath="org.eclipse.egit.ui"
888            tooltip="%FetchAction_tooltip">
889                  </action>
890                  <action
891            class="org.eclipse.egit.ui.internal.actions.PushUpstreamOrBranchAction"
892            definitionId="org.eclipse.egit.ui.team.SimplePush"
893            icon="icons/obj16/push.png"
894            id="org.eclipse.egit.ui.actionpush"
895            label="%PushToUpstreamAction.label"
896            menubarPath="org.eclipse.egit.ui.gitmenu/repo"
897            style="push"
898            toolbarPath="org.eclipse.egit.ui"
899            tooltip="%PushToUpstreamAction.tooltip">
900                  </action>
901                  <action
902            class="org.eclipse.egit.ui.internal.actions.ResetAction"
903            definitionId="org.eclipse.egit.ui.team.Reset"
904            icon="icons/obj16/reset.png"
905            id="org.eclipse.egit.ui.actionreset"
906            label="%ResetAction_label"
907            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
908            style="push"
909            toolbarPath="Normal/additions"
910            tooltip="%ResetAction_tooltip">
911                  </action>
912                  <action
913            class="org.eclipse.egit.ui.internal.actions.MergeAction"
914            definitionId="org.eclipse.egit.ui.team.Merge"
915            icon="icons/obj16/merge.png"
916            id="org.eclipse.egit.ui.actionmerge"
917            label="%MergeAction_label"
918            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
919            style="push"
920            toolbarPath="Normal/additions"
921            tooltip="%MergeAction_tooltip">
922                  </action>
923                  <action
924            class="org.eclipse.egit.ui.internal.actions.RebaseAction"
925            definitionId="org.eclipse.egit.ui.team.Rebase"
926            icon="icons/obj16/rebase.png"
927            id="org.eclipse.egit.ui.actionrebase"
928            label="%RebaseAction_label"
929            style="pulldown"
930            toolbarPath="Normal/additions"
931            tooltip="%RebaseAction_tooltip">
932          </action>
933          <action
934            class="org.eclipse.egit.ui.internal.actions.BranchAction"
935            definitionId="org.eclipse.egit.ui.team.Branch"
936            icon="icons/obj16/branch_obj.png"
937            id="org.eclipse.egit.ui.actionbranch"
938            label="%BranchAction_label"
939            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
940            style="push"
941            toolbarPath="Normal/additions"
942            tooltip="%BranchAction_tooltip">
943          </action>
944          <action
945            class="org.eclipse.egit.ui.internal.actions.StashToolbarAction"
946            definitionId="org.eclipse.egit.ui.team.stash.create"
947            icon="icons/obj16/stash.png"
948            id="org.eclipse.egit.ui.actionstash"
949            label="%StashToolbarAction_label"
950            style="pulldown"
951            toolbarPath="Normal/additions"
952            tooltip="%StashToolbarAction_tooltip">
953          </action>
954          <action
955            class="org.eclipse.egit.ui.internal.actions.CommitAction"
956            definitionId="org.eclipse.egit.ui.team.Commit"
957            icon="icons/obj16/commit.png"
958            id="org.eclipse.egit.ui.actioncommit"
959            label="%CommitAction_label"
960            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
961            style="push"
962            toolbarPath="Normal/additions"
963            tooltip="%CommitAction_tooltip">
964          </action>
965          <action
966            class="org.eclipse.egit.ui.internal.actions.AddToIndexAction"
967            definitionId="org.eclipse.egit.ui.team.AddToIndex"
968            icon="icons/obj16/add.png"
969            id="org.eclipse.egit.ui.actionadd"
970            label="%AddToIndexAction_label"
971            menubarPath="org.eclipse.egit.ui.gitmenu/repositoryGroup"
972            style="push"
973            toolbarPath="Normal/additions"
974            tooltip="%AddToIndexAction_tooltip">
975          </action>
976       </actionSet>
977    </extension>
978    <extension
979          name="%SharedCommandsLabel"
980          point="org.eclipse.ui.commands">
981       <command
982             defaultHandler="org.eclipse.egit.ui.internal.commands.ShareSingleProjectCommand"
983             description="%ShareProjectCommand_desc"
984             id="org.eclipse.egit.ui.command.shareProject"
985             name="%ShareProjectCommand_name">
986          <commandParameter
987                id="org.eclipse.egit.ui.command.projectNameParameter"
988                name="%ShareProjectCommandParameter_name"
989                optional="false"
990                values="org.eclipse.egit.ui.internal.commands.ProjectNameParameterValues">
991          </commandParameter>
992       </command>
993       <category
994             id="org.eclipse.egit.ui.commandCategory"
995             name="%Git">
996       </category>
997       <command
998             categoryId="org.eclipse.egit.ui.commandCategory"
999             defaultHandler="org.eclipse.egit.ui.internal.commands.ConfigureDebugTraceCommand"
1000             id="org.eclipse.egit.ui.command.configureTrace"
1001             name="%ConfigureTraceCommand.name">
1002       </command>
1003       <command
1004             categoryId="org.eclipse.egit.ui.commandCategory"
1005             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.FetchChangeFromGerritCommand"
1006             id="org.eclipse.egit.ui.FetchGerritChange"
1007             name="%FetchFromGerritCommand.name">
1008       </command>
1009       <command
1010             categoryId="org.eclipse.egit.ui.commandCategory"
1011             id="org.eclipse.egit.ui.team.Commit"
1012             name="%CommitCommand.name">
1013       </command>
1014       <command
1015             categoryId="org.eclipse.egit.ui.commandCategory"
1016             id="org.eclipse.egit.ui.team.SimpleFetch"
1017             name="%FetchUpstreamCommand.name">
1018       </command>
1019       <command
1020             categoryId="org.eclipse.egit.ui.commandCategory"
1021             id="org.eclipse.egit.ui.team.SimplePush"
1022             name="%PushUpstreamCommand.name">
1023       </command>
1024       <command
1025             categoryId="org.eclipse.egit.ui.commandCategory"
1026             id="org.eclipse.egit.ui.team.Pull"
1027             name="%TeamPullCommand.name">
1028       </command>
1029       <command
1030             categoryId="org.eclipse.egit.ui.commandCategory"
1031             id="org.eclipse.egit.ui.team.PullWithOptions"
1032             name="%PullWithOptions.name">
1033       </command>
1034       <command
1035             categoryId="org.eclipse.egit.ui.commandCategory"
1036             id="org.eclipse.egit.ui.team.Fetch"
1037             name="%FetchCommand.name">
1038       </command>
1039       <command
1040             categoryId="org.eclipse.egit.ui.commandCategory"
1041             id="org.eclipse.egit.ui.team.Push"
1042             name="%PushCommand.name">
1043       </command>
1044       <command
1045             categoryId="org.eclipse.egit.ui.commandCategory"
1046             id="org.eclipse.egit.ui.team.PushBranch"
1047             name="%PushBranchCommand.name">
1048       </command>
1049       <command
1050             categoryId="org.eclipse.egit.ui.commandCategory"
1051             id="org.eclipse.egit.ui.team.PushTags"
1052             name="%PushTagsCommand.name">
1053       </command>
1054       <command
1055             categoryId="org.eclipse.egit.ui.commandCategory"
1056             id="org.eclipse.egit.ui.team.Merge"
1057             name="%MergeCommand.name">
1058       </command>
1059       <command
1060             categoryId="org.eclipse.egit.ui.commandCategory"
1061             id="org.eclipse.egit.ui.team.Synchronize"
1062             name="%SynchronizeCommand.name">
1063       </command>
1064       <command
1065             categoryId="org.eclipse.egit.ui.commandCategory"
1066             id="org.eclipse.egit.ui.team.ShowHistory"
1067             name="%ShowInHistoryCommand.name">
1068       </command>
1069       <command
1070             categoryId="org.eclipse.egit.ui.commandCategory"
1071             id="org.eclipse.egit.ui.team.OpenCommit"
1072             name="%OpenCommit.name">
1073       </command>
1074       <command
1075             categoryId="org.eclipse.egit.ui.commandCategory"
1076             id="org.eclipse.egit.ui.team.Reset"
1077             name="%ResetCommand.name">
1078       </command>
1079       <command
1080             categoryId="org.eclipse.egit.ui.commandCategory"
1081             id="org.eclipse.egit.ui.team.Rebase"
1082             name="%RebaseCommand.name">
1083       </command>
1084       <command
1085             categoryId="org.eclipse.egit.ui.commandCategory"
1086             id="org.eclipse.egit.ui.team.ShowBlame"
1087             name="%ShowBlameCommand.name">
1088       </command>
1089       <command
1090             categoryId="org.eclipse.egit.ui.commandCategory"
1091             defaultHandler="org.eclipse.egit.ui.internal.commands.shared.PushHeadToGerritCommand"
1092             id="org.eclipse.egit.ui.PushHeadToGerrit"
1093             name="%PushToGerritCommand.label">
1094       </command>
1095       <command
1096             categoryId="org.eclipse.egit.ui.commandCategory"
1097             id="org.eclipse.egit.ui.team.GarbageCollect"
1098             name="%GarbageCollectCommand.label">
1099       </command>
1100       <command
1101             categoryId="org.eclipse.egit.ui.commandCategory"
1102             id="org.eclipse.egit.ui.team.InstallLfsLocal"
1103             name="%InstallLfsLocalCommand.label">
1104       </command>
1105       <command
1106             categoryId="org.eclipse.egit.ui.commandCategory"
1107             id="org.eclipse.egit.ui.team.Disconnect"
1108             name="%DisconnectCommand.name">
1109       </command>
1110    </extension>
1111    <extension
1112          point="org.eclipse.ui.handlers">
1113       <handler
1114             commandId="org.eclipse.egit.ui.internal.reflog.CheckoutCommand">
1115          <class
1116                class="org.eclipse.egit.ui.internal.reflog.command.CheckoutHandler">
1117          </class>
1118          <activeWhen>
1119             <and>
1120                <count
1121                      value="1">
1122                </count>
1123                <iterate>
1124                   <adapt
1125                         type="org.eclipse.jgit.lib.ReflogEntry">
1126                   </adapt>
1127                </iterate>
1128             </and>
1129          </activeWhen>
1130       </handler>
1131       <handler
1132             commandId="org.eclipse.egit.ui.internal.reflog.OpenInCommitViewerCommand">
1133          <class
1134                class="org.eclipse.egit.ui.internal.reflog.command.OpenInCommitViewerHandler">
1135          </class>
1136          <activeWhen>
1137             <and>
1138                <count
1139                      value="1">
1140                </count>
1141                <iterate>
1142                   <adapt
1143                         type="org.eclipse.jgit.lib.ReflogEntry">
1144                   </adapt>
1145                </iterate>
1146             </and>
1147          </activeWhen>
1148       </handler>
1149       <handler
1150             commandId="org.eclipse.egit.ui.history.Reset">
1151          <class
1152                class="org.eclipse.egit.ui.internal.reflog.command.ResetHandler">
1153          </class>
1154          <activeWhen>
1155             <and>
1156                <count
1157                      value="1">
1158                </count>
1159                <iterate>
1160                   <adapt
1161                         type="org.eclipse.jgit.lib.ReflogEntry">
1162                   </adapt>
1163                </iterate>
1164             </and>
1165          </activeWhen>
1166       </handler>
1167       <handler
1168             commandId="org.eclipse.egit.ui.team.Commit">
1169          <class
1170                class="org.eclipse.egit.ui.internal.actions.CommitActionHandler">
1171          </class>
1172          <activeWhen>
1173             <or>
1174                <reference
1175                      definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1176                </reference>
1177                <and>
1178                   <count
1179                         value="1">
1180                   </count>
1181                   <iterate>
1182                      <and>
1183                         <instanceof
1184                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1185                         </instanceof>
1186                         <not>
1187                            <test
1188                                  property="GitRepository.isBare">
1189                            </test>
1190                         </not>
1191                      </and>
1192                   </iterate>
1193                </and>
1194             </or>
1195          </activeWhen>
1196       </handler>
1197       <handler
1198             commandId="org.eclipse.egit.ui.team.SimpleFetch">
1199          <class
1200                class="org.eclipse.egit.ui.internal.repository.tree.command.FetchConfiguredRemoteCommand">
1201          </class>
1202          <activeWhen>
1203             <and>
1204                <count
1205                      value="1">
1206                </count>
1207                <and>
1208                   <iterate>
1209                      <or>
1210                         <instanceof
1211                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1212                         </instanceof>
1213                         <instanceof
1214                               value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
1215                         </instanceof>
1216                         <instanceof
1217                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1218                         </instanceof>
1219                      </or>
1220                   </iterate>
1221                </and>
1222             </and>
1223          </activeWhen>
1224       </handler>
1225       <handler
1226             commandId="org.eclipse.egit.ui.team.SimpleFetch">
1227          <class
1228                class="org.eclipse.egit.ui.internal.actions.SimpleFetchActionHandler">
1229          </class>
1230          <activeWhen>
1231             <test
1232                   property="GitSelection.resourcesSingleRepository">
1233             </test>
1234          </activeWhen>
1235       </handler>
1236       <handler
1237             commandId="org.eclipse.egit.ui.team.SimplePush">
1238          <class
1239                class="org.eclipse.egit.ui.internal.repository.tree.command.PushConfiguredRemoteCommand">
1240          </class>
1241          <activeWhen>
1242             <and>
1243                <count
1244                      value="1">
1245                </count>
1246                <and>
1247                   <iterate>
1248                      <or>
1249                         <instanceof
1250                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1251                         </instanceof>
1252                         <instanceof
1253                               value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
1254                         </instanceof>
1255                         <instanceof
1256                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1257                         </instanceof>
1258                      </or>
1259                   </iterate>
1260                </and>
1261             </and>
1262          </activeWhen>
1263       </handler>
1264       <handler
1265             commandId="org.eclipse.egit.ui.team.SimplePush">
1266          <class
1267                class="org.eclipse.egit.ui.internal.actions.SimplePushActionHandler">
1268          </class>
1269          <activeWhen>
1270             <test
1271                   property="GitSelection.resourcesSingleRepository">
1272             </test>
1273          </activeWhen>
1274       </handler>
1275       <handler
1276             commandId="org.eclipse.egit.ui.team.Pull">
1277          <class
1278                class="org.eclipse.egit.ui.internal.actions.PullFromUpstreamActionHandler">
1279          </class>
1280          <activeWhen>
1281             <or>
1282                <test
1283                      property="GitSelection.resourcesAllInRepository">
1284                </test>
1285                <iterate>
1286                   <instanceof
1287                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1288                   </instanceof>
1289                </iterate>
1290             </or>
1291          </activeWhen>
1292       </handler>
1293       <handler
1294             commandId="org.eclipse.egit.ui.team.PullWithOptions">
1295          <class
1296                class="org.eclipse.egit.ui.internal.actions.PullWithOptionsActionHandler">
1297          </class>
1298         <activeWhen>
1299             <or>
1300                <reference
1301                      definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1302                </reference>
1303                <and>
1304                   <count
1305                         value="1">
1306                   </count>
1307                   <iterate>
1308                      <and>
1309                         <instanceof
1310                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1311                         </instanceof>
1312                         <not>
1313                            <test
1314                                  property="GitRepository.isBare">
1315                            </test>
1316                         </not>
1317                      </and>
1318                   </iterate>
1319                </and>
1320             </or>
1321          </activeWhen>
1322       </handler>
1323       <handler
1324             commandId="org.eclipse.egit.ui.team.Fetch">
1325          <class
1326                class="org.eclipse.egit.ui.internal.repository.tree.command.FetchCommand">
1327          </class>
1328          <activeWhen>
1329             <and>
1330                <count
1331                      value="1">
1332                </count>
1333                <and>
1334                   <iterate>
1335                      <instanceof
1336                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1337                      </instanceof>
1338                   </iterate>
1339                </and>
1340             </and>
1341          </activeWhen>
1342       </handler>
1343       <handler
1344             commandId="org.eclipse.egit.ui.team.Fetch">
1345          <class
1346                class="org.eclipse.egit.ui.internal.actions.FetchActionHandler">
1347          </class>
1348          <activeWhen>
1349             <test
1350                   property="GitSelection.projectsSingleRepository">
1351             </test>
1352          </activeWhen>
1353       </handler>
1354       <handler
1355             commandId="org.eclipse.egit.ui.team.Push">
1356          <class
1357                class="org.eclipse.egit.ui.internal.repository.tree.command.PushCommand">
1358          </class>
1359          <activeWhen>
1360             <or>
1361                <and>
1362                   <count
1363                         value="1">
1364                   </count>
1365                   <iterate>
1366                      <or>
1367                         <instanceof
1368                               value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1369                         </instanceof>
1370                         <instanceof
1371                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1372                         </instanceof>
1373                      </or>
1374                   </iterate>
1375                </and>
1376                <and>
1377                   <count
1378                         value="+">
1379                   </count>
1380                   <iterate>
1381                      <instanceof
1382                            value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1383                      </instanceof>
1384                   </iterate>
1385                </and>
1386             </or>
1387          </activeWhen>
1388       </handler>
1389       <handler
1390             commandId="org.eclipse.egit.ui.team.Push">
1391          <class
1392                class="org.eclipse.egit.ui.internal.actions.PushActionHandler">
1393          </class>
1394          <activeWhen>
1395             <test
1396                   property="GitSelection.projectsSingleRepository">
1397             </test>
1398          </activeWhen>
1399       </handler>
1400       <handler
1401             commandId="org.eclipse.egit.ui.team.PushBranch">
1402          <class
1403                class="org.eclipse.egit.ui.internal.actions.PushBranchActionHandler">
1404          </class>
1405          <activeWhen>
1406             <or>
1407                <reference
1408                      definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1409                </reference>
1410                <and>
1411                   <count
1412                         value="1">
1413                   </count>
1414                   <iterate>
1415                              <instanceof
1416                                    value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1417                              </instanceof>
1418                   </iterate>
1419                </and>
1420             </or>
1421          </activeWhen>
1422       </handler>
1423       <handler
1424             commandId="org.eclipse.egit.ui.team.PushTags">
1425          <class
1426                class="org.eclipse.egit.ui.internal.actions.PushTagsActionHandler">
1427          </class>
1428          <activeWhen>
1429             <or>
1430                <test
1431                      property="GitSelection.projectsSingleRepository">
1432                </test>
1433                <and>
1434                   <count
1435                         value="1">
1436                   </count>
1437                   <iterate>
1438                              <instanceof
1439                                    value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1440                              </instanceof>
1441                   </iterate>
1442                </and>
1443                <and>
1444                   <count
1445                         value="1">
1446                   </count>
1447                   <iterate>
1448                              <instanceof
1449                                    value="org.eclipse.egit.ui.internal.repository.tree.TagsNode">
1450                              </instanceof>
1451                   </iterate>
1452                </and>
1453             </or>
1454          </activeWhen>
1455       </handler>
1456       <handler
1457             commandId="org.eclipse.egit.ui.team.Merge">
1458          <class
1459                class="org.eclipse.egit.ui.internal.repository.tree.command.MergeCommand">
1460          </class>
1461          <activeWhen>
1462             <and>
1463                <count
1464                      value="1">
1465                </count>
1466                <and>
1467                   <iterate>
1468                      <or>
1469                         <instanceof
1470                               value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1471                         </instanceof>
1472                         <instanceof
1473                               value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1474                         </instanceof>
1475                         <instanceof
1476                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1477                         </instanceof>
1478                      </or>
1479                   </iterate>
1480                </and>
1481             </and>
1482          </activeWhen>
1483       </handler>
1484       <handler
1485             class="org.eclipse.egit.ui.internal.repository.tree.command.AddToIndexCommand"
1486             commandId="org.eclipse.egit.ui.team.AddToIndex">
1487          <activeWhen>
1488             <and>
1489                <count
1490                      value="+">
1491                </count>
1492                <iterate
1493                      ifEmpty="false"
1494                      operator="and">
1495                   <or>
1496                      <instanceof
1497                            value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
1498                      </instanceof>
1499                      <instanceof
1500                            value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
1501                      </instanceof>
1502                      <instanceof
1503                            value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
1504                      </instanceof>
1505                   </or>
1506                </iterate>
1507             </and>
1508          </activeWhen>
1509       </handler>
1510       <handler
1511             commandId="org.eclipse.ui.edit.delete">
1512          <class
1513                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteFileCommand">
1514          </class>
1515          <activeWhen>
1516                <and>
1517                   <count
1518                         value="+">
1519                   </count>
1520                   <iterate
1521                         ifEmpty="false"
1522                         operator="and">
1523                      <or>
1524                         <instanceof
1525                               value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
1526                         </instanceof>
1527                         <instanceof
1528                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
1529                         </instanceof>
1530                      </or>
1531                   </iterate>
1532                </and>
1533          </activeWhen>
1534       </handler>
1535       <handler
1536             commandId="org.eclipse.ui.edit.delete">
1537          <class
1538                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveOrDeleteRepositoryCommand">
1539          </class>
1540          <activeWhen>
1541             <and>
1542                <count
1543                      value="1">
1544                </count>
1545                <iterate>
1546                   <instanceof
1547                         value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1548                   </instanceof>
1549                </iterate>
1550             </and>
1551          </activeWhen>
1552       </handler>
1553       <handler
1554             commandId="org.eclipse.ui.edit.delete">
1555          <class
1556                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteBranchCommand">
1557          </class>
1558          <activeWhen>
1559                <and>
1560                   <count
1561                         value="+">
1562                   </count>
1563                   <iterate>
1564                      <and>
1565                         <or>
1566                            <instanceof
1567                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1568                            </instanceof>
1569                            <instanceof
1570                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchHierarchyNode">
1571                            </instanceof>
1572                            <test
1573                                  property="GitRepository.isLocalBranch">
1574                            </test>
1575                         </or>
1576                         <not>
1577                            <test
1578                                  property="GitRepository.isRefCheckedOut">
1579                            </test>
1580                         </not>
1581                      </and>
1582                   </iterate>
1583                </and>
1584          </activeWhen>
1585       </handler>
1586       <handler
1587             commandId="org.eclipse.ui.edit.delete">
1588          <class
1589                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveRemoteCommand">
1590          </class>
1591          <activeWhen>
1592             <and>
1593                <count
1594                      value="1">
1595                </count>
1596                <iterate
1597                      ifEmpty="false"
1598                      operator="and">
1599                   <instanceof
1600                         value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1601                   </instanceof>
1602                </iterate>
1603             </and>
1604          </activeWhen>
1605       </handler>
1606       <handler
1607             commandId="org.eclipse.ui.edit.delete">
1608          <class
1609                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteFetchCommand">
1610          </class>
1611          <activeWhen>
1612             <and>
1613                <count
1614                      value="1">
1615                </count>
1616                <iterate
1617                      ifEmpty="false"
1618                      operator="and">
1619                   <instanceof
1620                         value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
1621                   </instanceof>
1622                </iterate>
1623             </and>
1624          </activeWhen>
1625       </handler>
1626       <handler
1627             commandId="org.eclipse.ui.edit.delete">
1628          <class
1629                class="org.eclipse.egit.ui.internal.repository.tree.command.DeletePushCommand">
1630          </class>
1631          <activeWhen>
1632             <and>
1633                <count
1634                      value="1">
1635                </count>
1636                <iterate
1637                      ifEmpty="false"
1638                      operator="and">
1639                   <instanceof
1640                         value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
1641                   </instanceof>
1642                </iterate>
1643             </and>
1644          </activeWhen>
1645       </handler>
1646       <handler
1647             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureBranch">
1648          <class
1649                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureBranchCommand">
1650          </class>
1651          <activeWhen>
1652             <reference
1653                   definitionId="org.eclipse.egit.ui.singleRefNode">
1654             </reference>
1655          </activeWhen>
1656       </handler>
1657       <handler
1658             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureFetch">
1659          <class
1660                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureFetchCommand">
1661          </class>
1662          <activeWhen>
1663             <reference
1664                   definitionId="org.eclipse.egit.ui.repositoriesViewCanConfigureFetch">
1665             </reference>
1666          </activeWhen>
1667       </handler>
1668       <handler
1669             commandId="org.eclipse.egit.ui.RepositoriesViewConfigurePush">
1670          <class
1671                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigurePushCommand">
1672          </class>
1673          <activeWhen>
1674             <reference
1675                   definitionId="org.eclipse.egit.ui.repositoriesViewCanConfigurePush">
1676             </reference>
1677          </activeWhen>
1678       </handler>
1679       <handler
1680             commandId="org.eclipse.egit.ui.RepositoriesViewChangeCredentials">
1681          <class
1682                class="org.eclipse.egit.ui.internal.repository.tree.command.ChangeCredentialsCommand">
1683          </class>
1684          <activeWhen>
1685             <reference
1686                   definitionId="org.eclipse.egit.ui.repositoryTreePushFetchNode">
1687             </reference>
1688          </activeWhen>
1689       </handler>
1690       <handler
1691             commandId="org.eclipse.egit.ui.RepositoriesViewClearCredentials">
1692          <class
1693                class="org.eclipse.egit.ui.internal.repository.tree.command.ClearCredentialsCommand">
1694          </class>
1695          <activeWhen>
1696             <reference
1697                   definitionId="org.eclipse.egit.ui.repositoryTreePushFetchNode">
1698             </reference>
1699          </activeWhen>
1700       </handler>
1701       <handler
1702             commandId="org.eclipse.ui.edit.delete">
1703          <class
1704                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteTagCommand">
1705          </class>
1706          <activeWhen>
1707             <and>
1708               <count
1709                      value="+">
1710               </count>
1711               <iterate>
1712                  <instanceof
1713                         value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1714                   </instanceof>
1715                </iterate>
1716             </and>
1717          </activeWhen>
1718       </handler>
1719       <handler
1720             commandId="org.eclipse.egit.ui.team.Merge">
1721          <class
1722                class="org.eclipse.egit.ui.internal.actions.MergeActionHandler">
1723          </class>
1724          <activeWhen>
1725             <test
1726                   property="GitSelection.projectsSingleRepository">
1727             </test>
1728          </activeWhen>
1729       </handler>
1730       <handler
1731             commandId="org.eclipse.egit.ui.team.Rebase">
1732          <class
1733                class="org.eclipse.egit.ui.internal.commands.shared.RebaseCurrentRefCommand">
1734          </class>
1735          <activeWhen>
1736             <and>
1737                <count
1738                      value="1">
1739                </count>
1740                <and>
1741                   <iterate>
1742                      <instanceof
1743                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1744                      </instanceof>
1745                   </iterate>
1746                </and>
1747             </and>
1748          </activeWhen>
1749       </handler>
1750       <handler
1751             commandId="org.eclipse.egit.ui.team.Rebase">
1752          <class
1753                class="org.eclipse.egit.ui.internal.actions.RebaseActionHandler">
1754          </class>
1755          <activeWhen>
1756             <test
1757                   property="GitSelection.projectsSingleRepository">
1758             </test>
1759          </activeWhen>
1760       </handler>
1761       <handler
1762             commandId="org.eclipse.egit.ui.team.Synchronize">
1763          <class
1764                class="org.eclipse.egit.ui.internal.repository.tree.command.SynchronizeCommand">
1765          </class>
1766          <activeWhen>
1767                  <or>
1768                     <and>
1769                        <count
1770                              value="1">
1771                        </count>
1772                        <and>
1773                           <iterate>
1774                              <instanceof
1775                                    value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1776                              </instanceof>
1777                           </iterate>
1778                        </and>
1779                     </and>
1780                     <and>
1781                   <count
1782                         value="2">
1783                   </count>
1784                   <iterate>
1785                      <and>
1786                         <or>
1787                            <instanceof
1788                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
1789                            </instanceof>
1790                            <instanceof
1791                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
1792                            </instanceof>
1793                         </or>
1794                      </and>
1795                   </iterate>
1796                </and>
1797                  </or>
1798          </activeWhen>
1799       </handler>
1800       <handler
1801             commandId="org.eclipse.egit.ui.team.ShowHistory">
1802          <class
1803                class="org.eclipse.egit.ui.internal.actions.ShowHistoryActionHandler">
1804          </class>
1805          <activeWhen>
1806             <reference
1807                   definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
1808             </reference>
1809          </activeWhen>
1810       </handler>
1811       <handler
1812             commandId="org.eclipse.egit.ui.team.Reset">
1813          <class
1814                class="org.eclipse.egit.ui.internal.repository.tree.command.ResetCommand">
1815          </class>
1816          <activeWhen>
1817             <and>
1818                <count
1819                      value="1">
1820                </count>
1821                <and>
1822                   <iterate>
1823                      <instanceof
1824                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
1825                      </instanceof>
1826                   </iterate>
1827                </and>
1828             </and>
1829          </activeWhen>
1830       </handler>
1831       <handler
1832             commandId="org.eclipse.egit.ui.team.Reset">
1833          <class
1834                class="org.eclipse.egit.ui.internal.actions.ResetActionHandler">
1835          </class>
1836          <activeWhen>
1837             <test
1838                   property="GitSelection.projectsSingleRepository">
1839             </test>
1840          </activeWhen>
1841       </handler>
1842       <handler
1843             commandId="org.eclipse.ui.file.refresh">
1844          <class
1845                class="org.eclipse.egit.ui.internal.repository.tree.command.RefreshCommand">
1846          </class>
1847          <activeWhen>
1848              <with
1849                    variable="activePartId">
1850                 <equals
1851                         value="org.eclipse.egit.ui.RepositoriesView">
1852                 </equals>
1853              </with>
1854           </activeWhen>
1855       </handler>
1856       <handler
1857             commandId="org.eclipse.egit.ui.RepositoriesViewRemoveRemote">
1858          <class
1859                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveRemoteCommand">
1860          </class>
1861          <activeWhen>
1862              <and>
1863                   <count
1864                         value="1">
1865                   </count>
1866                   <iterate
1867                         ifEmpty="false"
1868                         operator="and">
1869                      <instanceof
1870                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1871                      </instanceof>
1872                   </iterate>
1873                </and>
1874          </activeWhen>
1875       </handler>
1876       <handler
1877             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote">
1878          <class
1879                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureGerritRemoteCommand">
1880          </class>
1881          <activeWhen>
1882              <and>
1883                   <count
1884                         value="1">
1885                   </count>
1886                   <iterate
1887                         ifEmpty="false"
1888                         operator="and">
1889                      <instanceof
1890                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
1891                      </instanceof>
1892                   </iterate>
1893                </and>
1894          </activeWhen>
1895       </handler>
1896       <handler
1897             commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath">
1898          <class
1899                class="org.eclipse.egit.ui.internal.repository.tree.command.CopyPathCommand">
1900          </class>
1901          <activeWhen>
1902             <reference
1903                   definitionId="org.eclipse.egit.ui.repositoryTreePathNode">
1904             </reference>
1905          </activeWhen>
1906       </handler>
1907       <handler
1908             commandId="org.eclipse.ui.edit.rename">
1909          <class
1910                class="org.eclipse.egit.ui.internal.repository.tree.command.RenameBranchCommand">
1911          </class>
1912           <activeWhen>
1913             <reference
1914                   definitionId="org.eclipse.egit.ui.singleRefNode">
1915             </reference>
1916          </activeWhen>
1917       </handler>
1918       <handler
1919             commandId="org.eclipse.egit.ui.team.RenameBranch"
1920             class="org.eclipse.egit.ui.internal.actions.RenameBranchActionHandler">
1921          <activeWhen>
1922             <test property="GitSelection.projectsSingleRepository" />
1923          </activeWhen>
1924       </handler>
1925       <handler
1926             commandId="org.eclipse.ui.edit.rename"
1927             class="org.eclipse.egit.ui.internal.history.command.RenameBranchOnCommitHandler">
1928          <activeWhen>
1929             <and>
1930                <count value="1" />
1931                <iterate>
1932                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
1933                   <test property="Git.hasRef" args="refs/heads/,refs/remotes" />
1934                </iterate>
1935             </and>
1936          </activeWhen>
1937       </handler>
1938       <handler
1939             commandId="org.eclipse.egit.ui.team.submodule.update">
1940          <class
1941                class="org.eclipse.egit.ui.internal.repository.tree.command.SubmoduleUpdateCommand">
1942          </class>
1943          <activeWhen>
1944              <and>
1945                   <count
1946                         value="+">
1947                   </count>
1948                   <iterate>
1949                      <or>
1950                         <and>
1951                            <instanceof
1952                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1953                            </instanceof>
1954                            <test
1955                                  property="GitRepository.isSubmodule">
1956                            </test>
1957                         </and>
1958                         <instanceof
1959                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
1960                         </instanceof>
1961                      </or>
1962                   </iterate>
1963                </and>
1964          </activeWhen>
1965       </handler>
1966       <handler
1967             commandId="org.eclipse.egit.ui.team.submodule.sync">
1968          <class
1969                class="org.eclipse.egit.ui.internal.repository.tree.command.SubmoduleSyncCommand">
1970          </class>
1971          <activeWhen>
1972              <and>
1973                   <count
1974                         value="+">
1975                   </count>
1976                   <iterate>
1977                      <or>
1978                         <and>
1979                            <instanceof
1980                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
1981                            </instanceof>
1982                            <test
1983                                  property="GitRepository.isSubmodule">
1984                            </test>
1985                         </and>
1986                         <instanceof
1987                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
1988                         </instanceof>
1989                      </or>
1990                   </iterate>
1991                </and>
1992          </activeWhen>
1993       </handler>
1994       <handler
1995             commandId="org.eclipse.egit.ui.team.submodule.add">
1996          <class
1997                class="org.eclipse.egit.ui.internal.repository.tree.command.SubmoduleAddCommand">
1998          </class>
1999          <activeWhen>
2000              <and>
2001                   <count
2002                         value="1">
2003                   </count>
2004                   <iterate>
2005                      <or>
2006                         <and>
2007                            <instanceof
2008                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2009                            </instanceof>
2010                            <not>
2011                               <test
2012                                     property="GitRepository.isSubmodule">
2013                               </test>
2014                            </not>
2015                            <not>
2016                               <test
2017                                     property="GitRepository.isBare">
2018                               </test>
2019                            </not>
2020                         </and>
2021                         <instanceof
2022                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
2023                         </instanceof>
2024                      </or>
2025                   </iterate>
2026                </and>
2027          </activeWhen>
2028       </handler>
2029       <handler
2030             commandId="org.eclipse.egit.ui.team.stash.apply">
2031          <class
2032                class="org.eclipse.egit.ui.internal.repository.tree.command.StashApplyCommand">
2033          </class>
2034          <activeWhen>
2035              <and>
2036                   <count
2037                         value="1">
2038                   </count>
2039                   <iterate>
2040                      <and>
2041                         <instanceof
2042                               value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode">
2043                         </instanceof>
2044                         <not>
2045                            <test
2046                                  property="GitRepository.isBare">
2047                            </test>
2048                         </not>
2049                         <test
2050                               property="GitRepository.isSafe">
2051                         </test>
2052                      </and>
2053                   </iterate>
2054                </and>
2055          </activeWhen>
2056       </handler>
2057       <handler
2058             commandId="org.eclipse.ui.edit.delete">
2059          <class
2060                class="org.eclipse.egit.ui.internal.repository.tree.command.StashDropCommand">
2061          </class>
2062          <activeWhen>
2063              <and>
2064                   <count
2065                         value="+">
2066                   </count>
2067                   <iterate>
2068                      <and>
2069                         <instanceof
2070                               value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode">
2071                         </instanceof>
2072                         <not>
2073                            <test
2074                                  property="GitRepository.isBare">
2075                            </test>
2076                         </not>
2077                         <test
2078                               property="GitRepository.isSafe">
2079                         </test>
2080                      </and>
2081                   </iterate>
2082                </and>
2083          </activeWhen>
2084       </handler>
2085       <handler
2086             commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand">
2087          <class
2088                class="org.eclipse.egit.ui.internal.reflog.command.CopyHandler">
2089          </class>
2090          <activeWhen>
2091             <and>
2092                <count
2093                      value="1">
2094                </count>
2095                <iterate>
2096                   <adapt
2097                         type="org.eclipse.jgit.lib.ReflogEntry">
2098                   </adapt>
2099                </iterate>
2100             </and>
2101          </activeWhen>
2102       </handler>
2103       <handler
2104             commandId="org.eclipse.egit.ui.team.GarbageCollect">
2105          <class
2106                class="org.eclipse.egit.ui.internal.repository.tree.command.GarbageCollectCommand">
2107          </class>
2108          <activeWhen>
2109              <and>
2110                   <count
2111                         value="+">
2112                   </count>
2113                   <iterate>
2114                      <and>
2115                         <instanceof
2116                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2117                         </instanceof>
2118                         <test
2119                               property="GitRepository.isSafe">
2120                         </test>
2121                         <test
2122                               property="GitRepository.containsHead">
2123                         </test>
2124                      </and>
2125                   </iterate>
2126                </and>
2127          </activeWhen>
2128       </handler>
2129       <handler
2130             commandId="org.eclipse.egit.ui.team.InstallLfsLocal">
2131          <class
2132                class="org.eclipse.egit.ui.internal.repository.tree.command.InstallLfsLocalCommand">
2133          </class>
2134          <activeWhen>
2135              <and>
2136                   <count
2137                         value="+">
2138                   </count>
2139                   <iterate>
2140                      <and>
2141                         <instanceof
2142                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2143                         </instanceof>
2144                         <test
2145                               property="GitRepository.isSafe">
2146                         </test>
2147                         <test
2148                               property="GitRepository.canEnableLfs">
2149                         </test>
2150                      </and>
2151                   </iterate>
2152                </and>
2153          </activeWhen>
2154       </handler>
2155       <handler
2156             class="org.eclipse.egit.ui.internal.actions.UntrackActionHandler"
2157             commandId="org.eclipse.egit.ui.team.Untrack">
2158          <activeWhen>
2159             <reference
2160                   definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
2161             </reference>
2162          </activeWhen>
2163       </handler>
2164       <handler
2165             class="org.eclipse.egit.ui.internal.actions.DisconnectActionHandler"
2166             commandId="org.eclipse.egit.ui.team.Disconnect">
2167          <activeWhen>
2168             <test
2169                   property="GitSelection.projectsWithRepositories">
2170             </test>
2171          </activeWhen>
2172       </handler>
2173       <handler
2174             class="org.eclipse.egit.ui.internal.actions.ShowBlameActionHandler"
2175             commandId="org.eclipse.egit.ui.team.ShowBlame">
2176          <activeWhen>
2177             <or>
2178                <and>
2179                   <count value="1" />
2180                   <iterate>
2181                      <adapt type="org.eclipse.core.resources.IResource">
2182                         <instanceof value="org.eclipse.core.resources.IFile" />
2183                         <test property="GitResource.isShared" />
2184                      </adapt>
2185                   </iterate>
2186                </and>
2187                <with variable="activePart">
2188                   <instanceof value="org.eclipse.ui.IEditorPart" />
2189                   <with variable="activeEditorInput">
2190                      <or>
2191                         <adapt type="org.eclipse.core.resources.IFile">
2192                            <test property="GitResource.isShared" />
2193                         </adapt>
2194                         <adapt type="org.eclipse.team.core.history.IFileRevision">
2195                            <instanceof value="org.eclipse.egit.core.internal.storage.CommitFileRevision" />
2196                         </adapt>
2197                      </or>
2198                   </with>
2199                </with>
2200             </or>
2201          </activeWhen>
2202       </handler>
2203       <handler
2204             commandId="org.eclipse.egit.ui.team.CompareWithHead">
2205          <class
2206                class="org.eclipse.egit.ui.internal.actions.CompareWithHeadActionHandler">
2207          </class>
2208          <activeWhen>
2209             <and>
2210                <test property="GitSelection.selectionSingleRepository" />
2211                <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
2212             </and>
2213          </activeWhen>
2214       </handler>
2215       <handler
2216             commandId="org.eclipse.egit.ui.team.CompareWithIndex">
2217          <class
2218                class="org.eclipse.egit.ui.internal.actions.CompareWithIndexActionHandler">
2219          </class>
2220          <activeWhen>
2221             <and>
2222                <test property="GitSelection.selectionSingleRepository" />
2223                <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
2224             </and>
2225          </activeWhen>
2226       </handler>
2227       <handler
2228             commandId="org.eclipse.egit.ui.team.CompareIndexWithHead">
2229          <class
2230                class="org.eclipse.egit.ui.internal.actions.CompareIndexWithHeadActionHandler">
2231          </class>
2232          <activeWhen>
2233             <and>
2234                <count value="1" />
2235                <test property="org.eclipse.egit.ui.resources.ResourceState.hasStagedChanges" />
2236             </and>
2237          </activeWhen>
2238       </handler>
2239       <handler
2240             commandId="org.eclipse.egit.ui.team.CompareWithPrevious">
2241          <class
2242                class="org.eclipse.egit.ui.internal.actions.CompareWithPreviousActionHandler">
2243          </class>
2244          <activeWhen>
2245             <and>
2246                <count value="1" />
2247                <test property="org.eclipse.egit.ui.resources.ResourceState.hasTrackedResources" />
2248             </and>
2249          </activeWhen>
2250       </handler>
2251       <handler
2252             commandId="org.eclipse.egit.ui.team.CompareWithCommit">
2253          <class
2254                class="org.eclipse.egit.ui.internal.actions.CompareWithCommitActionHandler">
2255          </class>
2256          <activeWhen>
2257             <reference definitionId="org.eclipse.egit.ui.resourcesSingleRepository" />
2258          </activeWhen>
2259       </handler>
2260       <handler
2261             commandId="org.eclipse.egit.ui.team.CompareWithRef">
2262          <class
2263                class="org.eclipse.egit.ui.internal.actions.CompareWithRefActionHandler">
2264          </class>
2265          <activeWhen>
2266             <reference definitionId="org.eclipse.egit.ui.resourcesSingleRepository" />
2267          </activeWhen>
2268       </handler>
2269       <handler
2270             commandId="org.eclipse.egit.ui.team.ReplaceWithPrevious">
2271          <class
2272                class="org.eclipse.egit.ui.internal.actions.ReplaceWithPreviousActionHandler">
2273          </class>
2274          <activeWhen>
2275             <and>
2276                <count value="1" />
2277                <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
2278                <test property="org.eclipse.egit.ui.resources.ResourceState.hasTrackedResources" />
2279             </and>
2280          </activeWhen>
2281       </handler>
2282       <handler
2283             commandId="org.eclipse.egit.ui.team.Discard">
2284          <class
2285                class="org.eclipse.egit.ui.internal.actions.DiscardChangesActionHandler">
2286          </class>
2287          <activeWhen>
2288             <test property="GitSelection.resourcesAllInRepository" args="isSafe" />
2289          </activeWhen>
2290       </handler>
2291       <handler
2292             commandId="org.eclipse.egit.ui.team.ReplaceWithHead">
2293          <class
2294                class="org.eclipse.egit.ui.internal.actions.ReplaceWithHeadActionHandler">
2295          </class>
2296          <activeWhen>
2297             <test property="GitSelection.resourcesAllInRepository" args="isSafe" />
2298          </activeWhen>
2299       </handler>
2300       <handler
2301             commandId="org.eclipse.egit.ui.team.ReplaceWithCommit">
2302          <class
2303                class="org.eclipse.egit.ui.internal.actions.ReplaceWithCommitActionHandler">
2304          </class>
2305          <activeWhen>
2306             <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
2307          </activeWhen>
2308       </handler>
2309       <handler
2310             commandId="org.eclipse.egit.ui.team.ReplaceWithRef">
2311          <class
2312                class="org.eclipse.egit.ui.internal.actions.ReplaceWithRefActionHandler">
2313          </class>
2314          <activeWhen>
2315             <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
2316          </activeWhen>
2317       </handler>
2318       <handler
2319             commandId="org.eclipse.egit.ui.RepositoriesViewImportProjects">
2320          <class
2321                class="org.eclipse.egit.ui.internal.repository.tree.command.ImportProjectsCommand">
2322          </class>
2323          <activeWhen>
2324             <or>
2325                <and>
2326                   <count
2327                         value="1">
2328                   </count>
2329                   <iterate>
2330                      <or>
2331                         <instanceof
2332                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
2333                         </instanceof>
2334                         <instanceof
2335                               value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
2336                         </instanceof>
2337                      </or>
2338                      <not>
2339                         <test
2340                               property="GitRepository.isBare">
2341                         </test>
2342                      </not>
2343                   </iterate>
2344                </and>
2345                <and>
2346                   <count
2347                         value="+">
2348                   </count>
2349                   <iterate>
2350                      <or>
2351                         <instanceof
2352                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
2353                         </instanceof>
2354                      </or>
2355                      <not>
2356                         <test
2357                               property="GitRepository.isBare">
2358                         </test>
2359                      </not>
2360                   </iterate>
2361                </and>
2362             </or>
2363          </activeWhen>
2364       </handler>
2365       <handler
2366             commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch">
2367          <class
2368                class="org.eclipse.egit.ui.internal.repository.tree.command.CreateBranchCommand">
2369          </class>
2370          <activeWhen>
2371             <and>
2372                <count value="1" />
2373                <iterate>
2374                   <or>
2375                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
2376                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
2377                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
2378                   </or>
2379                </iterate>
2380             </and>
2381          </activeWhen>
2382       </handler>
2383       <handler
2384             commandId="org.eclipse.egit.ui.RepositoriesViewNewRemote">
2385          <class
2386                class="org.eclipse.egit.ui.internal.repository.tree.command.ConfigureRemoteCommand">
2387          </class>
2388          <activeWhen>
2389             <and>
2390                <count value="1" />
2391                <iterate>
2392                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RemotesNode" />
2393                </iterate>
2394             </and>
2395          </activeWhen>
2396       </handler>
2397       <handler
2398             commandId="org.eclipse.egit.ui.RepositoriesViewOpenInEditor">
2399          <class
2400                class="org.eclipse.egit.ui.internal.repository.tree.command.OpenInEditorCommand">
2401          </class>
2402          <activeWhen>
2403             <and>
2404                <count value="1" />
2405                <iterate>
2406                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2407                </iterate>
2408             </and>
2409          </activeWhen>
2410       </handler>
2411       <handler
2412             commandId="org.eclipse.egit.ui.RepositoriesViewOpen">
2413          <class
2414                class="org.eclipse.egit.ui.internal.repository.tree.command.OpenCommand">
2415          </class>
2416          <activeWhen>
2417             <and>
2418                <count value="1" />
2419                <iterate>
2420                   <or>
2421                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
2422                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
2423                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.FileNode" />
2424                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode" />
2425                   </or>
2426                </iterate>
2427             </and>
2428          </activeWhen>
2429       </handler>
2430       <handler
2431             commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection">
2432          <class
2433                class="org.eclipse.egit.ui.internal.repository.tree.command.LinkWithSelectionCommand">
2434          </class>
2435          <activeWhen>
2436             <with variable="activePart">
2437                <instanceof value="org.eclipse.egit.ui.internal.repository.RepositoriesView" />
2438             </with>
2439          </activeWhen>
2440       </handler>
2441       <handler
2442             commandId="org.eclipse.egit.ui.RepositoriesViewRemove">
2443          <class
2444                class="org.eclipse.egit.ui.internal.repository.tree.command.RemoveCommand">
2445          </class>
2446          <activeWhen>
2447             <iterate ifEmpty="false">
2448                <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2449             </iterate>
2450          </activeWhen>
2451       </handler>
2452       <handler
2453             commandId="org.eclipse.egit.ui.RepositoriesViewDelete">
2454          <class
2455                class="org.eclipse.egit.ui.internal.repository.tree.command.DeleteCommand">
2456          </class>
2457          <activeWhen>
2458             <and>
2459                <count value="1" />
2460                <iterate>
2461                   <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2462                </iterate>
2463             </and>
2464          </activeWhen>
2465       </handler>
2466       <handler
2467             commandId="org.eclipse.egit.ui.CheckoutCommand">
2468          <class
2469                class="org.eclipse.egit.ui.internal.repository.tree.command.CheckoutCommand">
2470          </class>
2471          <activeWhen>
2472             <and>
2473                <count value="1" />
2474                <iterate>
2475                   <or>
2476                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.TagNode" />
2477                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RefNode" />
2478                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.AdditionalRefNode" />
2479                   </or>
2480                   <not>
2481                      <test property="GitRepository.isRefCheckedOut" />
2482                   </not>
2483                   <not>
2484                      <test property="GitRepository.isBare" />
2485                   </not>
2486                </iterate>
2487             </and>
2488          </activeWhen>
2489       </handler>
2490       <handler
2491             commandId="org.eclipse.egit.ui.ImportChangedProjectsCommandId">
2492          <class
2493                class="org.eclipse.egit.ui.internal.history.command.ImportChangedProjectsCommand">
2494          </class>
2495          <activeWhen>
2496             <iterate ifEmpty="false">
2497                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2498             </iterate>
2499          </activeWhen>
2500       </handler>
2501       <handler
2502             commandId="org.eclipse.egit.ui.history.CheckoutCommand">
2503          <class
2504                class="org.eclipse.egit.ui.internal.history.command.CheckoutCommitHandler">
2505          </class>
2506          <activeWhen>
2507             <and>
2508                <count value="1" />
2509                <iterate>
2510                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2511                   <test property="Git.canCommit" />
2512                </iterate>
2513             </and>
2514          </activeWhen>
2515       </handler>
2516       <handler
2517             commandId="org.eclipse.egit.ui.commit.Checkout">
2518          <class
2519                class="org.eclipse.egit.ui.internal.commit.command.CheckoutHandler">
2520          </class>
2521          <activeWhen>
2522             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2523          </activeWhen>
2524       </handler>
2525       <handler
2526             commandId="org.eclipse.egit.ui.commit.CreateTag">
2527          <class
2528                class="org.eclipse.egit.ui.internal.commit.command.CreateTagHandler">
2529          </class>
2530          <activeWhen>
2531             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2532          </activeWhen>
2533       </handler>
2534       <handler
2535             commandId="org.eclipse.egit.ui.commit.CreateBranch">
2536          <class
2537                class="org.eclipse.egit.ui.internal.commit.command.CreateBranchHandler">
2538          </class>
2539          <activeWhen>
2540             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2541          </activeWhen>
2542       </handler>
2543       <handler
2544             commandId="org.eclipse.egit.ui.commit.ShowInHistory">
2545          <class
2546                class="org.eclipse.egit.ui.internal.commit.command.ShowInHistoryHandler">
2547          </class>
2548          <activeWhen>
2549             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2550          </activeWhen>
2551       </handler>
2552       <handler
2553             commandId="org.eclipse.egit.ui.commit.CherryPick">
2554          <class
2555                class="org.eclipse.egit.ui.internal.commit.command.CherryPickHandler">
2556          </class>
2557          <activeWhen>
2558             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2559          </activeWhen>
2560       </handler>
2561       <handler
2562             commandId="org.eclipse.egit.ui.commit.Revert">
2563          <class
2564                class="org.eclipse.egit.ui.internal.commit.command.RevertHandler">
2565          </class>
2566          <activeWhen>
2567             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2568          </activeWhen>
2569       </handler>
2570       <handler
2571             commandId="org.eclipse.egit.ui.commit.StashApply">
2572          <class
2573                class="org.eclipse.egit.ui.internal.commit.command.StashApplyHandler">
2574          </class>
2575          <activeWhen>
2576             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2577          </activeWhen>
2578       </handler>
2579       <handler
2580             commandId="org.eclipse.egit.ui.commit.StashDrop">
2581          <class
2582                class="org.eclipse.egit.ui.internal.commit.command.StashDropHandler">
2583          </class>
2584          <activeWhen>
2585             <reference definitionId="org.eclipse.egit.ui.singleRepositoryCommit" />
2586          </activeWhen>
2587       </handler>
2588       <handler
2589             commandId="org.eclipse.egit.ui.AbortRebase">
2590          <class
2591                class="org.eclipse.egit.ui.internal.commands.shared.AbortRebaseCommand">
2592          </class>
2593          <activeWhen>
2594             <or>
2595                <and>
2596                   <count value="1" />
2597                   <iterate>
2598                      <and>
2599                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2600                         <test property="GitRepository.canAbortRebase" />
2601                      </and>
2602                   </iterate>
2603                </and>
2604                <test
2605                      property="GitSelection.projectsSingleRepository"
2606                      args="canAbortRebase">
2607                </test>
2608             </or>
2609          </activeWhen>
2610       </handler>
2611       <handler
2612             commandId="org.eclipse.egit.ui.ContinueRebase">
2613          <class
2614                class="org.eclipse.egit.ui.internal.commands.shared.ContinueRebaseCommand">
2615          </class>
2616          <activeWhen>
2617             <or>
2618                <and>
2619                   <count value="1" />
2620                   <iterate>
2621                      <and>
2622                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2623                         <test property="GitRepository.canContinueRebase" />
2624                      </and>
2625                   </iterate>
2626                </and>
2627                <test
2628                      property="GitSelection.projectsSingleRepository"
2629                      args="canContinueRebase">
2630                </test>
2631             </or>
2632          </activeWhen>
2633       </handler>
2634       <handler
2635             commandId="org.eclipse.egit.ui.SkipRebase">
2636          <class
2637                class="org.eclipse.egit.ui.internal.commands.shared.SkipRebaseCommand">
2638          </class>
2639          <activeWhen>
2640             <or>
2641                <and>
2642                   <count value="1" />
2643                   <iterate>
2644                      <and>
2645                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2646                         <test property="GitRepository.canAbortRebase" />
2647                      </and>
2648                   </iterate>
2649                </and>
2650                <test
2651                      property="GitSelection.projectsSingleRepository"
2652                      args="canAbortRebase">
2653                </test>
2654             </or>
2655          </activeWhen>
2656       </handler>
2657       <handler
2658             commandId="org.eclipse.egit.ui.team.clean">
2659          <class
2660                class="org.eclipse.egit.ui.internal.actions.CleanActionHandler">
2661          </class>
2662          <activeWhen>
2663             <or>
2664                <and>
2665                   <count value="1" />
2666                   <iterate>
2667                      <or>
2668                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
2669                         <instanceof value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode" />
2670                      </or>
2671                      <not>
2672                         <test property="GitRepository.isBare" />
2673                      </not>
2674                   </iterate>
2675                </and>
2676                <test property="GitSelection.projectsSingleRepository" />
2677             </or>
2678          </activeWhen>
2679       </handler>
2680       <handler
2681             commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand">
2682          <class
2683                class="org.eclipse.egit.ui.internal.history.command.OpenInCommitViewerHandler">
2684          </class>
2685          <activeWhen>
2686              <iterate operator="or" ifEmpty="false">
2687                 <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
2688              </iterate>
2689          </activeWhen>
2690       </handler>
2691       <handler
2692             commandId="org.eclipse.egit.ui.history.CompareWithWorkingTree">
2693          <class
2694                class="org.eclipse.egit.ui.internal.history.command.CompareWithWorkingTreeHandler">
2695          </class>
2696          <activeWhen>
2697             <and>
2698                <count value="1" />
2699                <iterate>
2700                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
2701                </iterate>
2702                <with variable="activePart">
2703                   <test property="GitHistory.isSingleFileHistory" value="resource" />
2704                </with>
2705             </and>
2706          </activeWhen>
2707       </handler>
2708       <handler
2709             commandId="org.eclipse.egit.ui.history.CompareWithHead">
2710          <class
2711                class="org.eclipse.egit.ui.internal.history.command.CompareWithWorkingTreeHandler">
2712          </class>
2713          <activeWhen>
2714             <and>
2715                <count value="1" />
2716                <iterate>
2717                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
2718                </iterate>
2719                <with variable="activePart">
2720                   <test property="GitHistory.isSingleFileHistory" value="file" />
2721                </with>
2722             </and>
2723          </activeWhen>
2724       </handler>
2725       <handler
2726             commandId="org.eclipse.egit.ui.history.ShowVersions">
2727          <class
2728                class="org.eclipse.egit.ui.internal.history.command.ShowVersionsHandler">
2729          </class>
2730          <activeWhen>
2731             <and>
2732                <count value="1" />
2733                <iterate>
2734                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2735                </iterate>
2736             </and>
2737          </activeWhen>
2738       </handler>
2739       <handler
2740             commandId="org.eclipse.egit.ui.history.ShowBlame">
2741          <class
2742                class="org.eclipse.egit.ui.internal.history.command.ShowBlameHandler">
2743          </class>
2744          <activeWhen>
2745             <reference definitionId="org.eclipse.egit.ui.singleFileCommit" />
2746          </activeWhen>
2747       </handler>
2748       <handler
2749             commandId="org.eclipse.egit.ui.history.OpenInTextEditorCommand">
2750          <class
2751                class="org.eclipse.egit.ui.internal.history.command.OpenInTextEditorHandler">
2752          </class>
2753          <activeWhen>
2754             <reference definitionId="org.eclipse.egit.ui.singleFileCommit" />
2755          </activeWhen>
2756       </handler>
2757       <handler
2758             commandId="org.eclipse.egit.ui.history.PushCommit">
2759          <class
2760                class="org.eclipse.egit.ui.internal.history.command.PushCommitHandler">
2761          </class>
2762          <activeWhen>
2763             <and>
2764                <count value="1" />
2765                <iterate>
2766                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2767                </iterate>
2768             </and>
2769          </activeWhen>
2770       </handler>
2771       <handler
2772             commandId="org.eclipse.egit.ui.history.CreateBranch">
2773          <class
2774                class="org.eclipse.egit.ui.internal.history.command.CreateBranchOnCommitHandler">
2775          </class>
2776          <activeWhen>
2777             <and>
2778                <count value="1" />
2779                <iterate>
2780                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
2781                </iterate>
2782             </and>
2783          </activeWhen>
2784       </handler>
2785       <handler
2786             commandId="org.eclipse.egit.ui.history.DeleteBranch">
2787          <class
2788                class="org.eclipse.egit.ui.internal.history.command.DeleteBranchOnCommitHandler">
2789          </class>
2790          <activeWhen>
2791             <and>
2792                <count value="1" />
2793                <iterate>
2794                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2795                      <test property="Git.hasRef" args="refs/heads/,refs/remotes/" />
2796                   </adapt>
2797                </iterate>
2798             </and>
2799          </activeWhen>
2800       </handler>
2801       <handler
2802             commandId="org.eclipse.egit.ui.history.CreateTag">
2803          <class
2804                class="org.eclipse.egit.ui.internal.history.command.CreateTagOnCommitHandler">
2805          </class>
2806          <activeWhen>
2807             <and>
2808                <count value="1" />
2809                <iterate>
2810                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit" />
2811                </iterate>
2812             </and>
2813          </activeWhen>
2814       </handler>
2815       <handler
2816             commandId="org.eclipse.egit.ui.history.DeleteTag">
2817          <class
2818                class="org.eclipse.egit.ui.internal.history.command.DeleteTagOnCommitHandler">
2819          </class>
2820          <activeWhen>
2821             <and>
2822                <count value="1" />
2823                <iterate>
2824                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2825                      <test property="Git.hasRef" args="refs/tags/" />
2826                   </adapt>
2827                </iterate>
2828             </and>
2829          </activeWhen>
2830       </handler>
2831       <handler
2832             commandId="org.eclipse.egit.ui.history.CreatePatch">
2833          <class
2834                class="org.eclipse.egit.ui.internal.history.command.CreatePatchHandler">
2835          </class>
2836          <activeWhen>
2837             <and>
2838                <count value="1" />
2839                <iterate>
2840                   <adapt type="org.eclipse.egit.core.internal.IRepositoryCommit">
2841                      <or>
2842                         <test property="Git.parentCount" value="1" />
2843                         <test property="Git.parentCount" value="0" />
2844                      </or>
2845                   </adapt>
2846                </iterate>
2847             </and>
2848          </activeWhen>
2849       </handler>
2850       <handler
2851             commandId="org.eclipse.egit.ui.history.CherryPick">
2852          <class
2853                class="org.eclipse.egit.ui.internal.history.command.CherryPickHandler">
2854          </class>
2855          <activeWhen>
2856             <and>
2857                <count value="1" />
2858                <iterate>
2859                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2860                   <test property="Git.isSafe" />
2861                </iterate>
2862             </and>
2863          </activeWhen>
2864       </handler>
2865       <handler
2866             commandId="org.eclipse.egit.ui.history.Merge">
2867          <class
2868                class="org.eclipse.egit.ui.internal.history.command.MergeHandler">
2869          </class>
2870          <activeWhen>
2871             <and>
2872                <count value="1" />
2873                <iterate>
2874                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2875                   <test property="Git.isSafe" />
2876                </iterate>
2877             </and>
2878          </activeWhen>
2879       </handler>
2880       <handler
2881             commandId="org.eclipse.egit.ui.RebaseCurrent">
2882          <class
2883                class="org.eclipse.egit.ui.internal.history.command.RebaseCurrentHandler">
2884          </class>
2885          <activeWhen>
2886             <and>
2887                <count value="1" />
2888                <iterate>
2889                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2890                   <test property="Git.isSafe" />
2891                </iterate>
2892             </and>
2893          </activeWhen>
2894       </handler>
2895       <handler
2896             commandId="org.eclipse.egit.ui.RebaseInteractiveCurrent">
2897          <class
2898                class="org.eclipse.egit.ui.internal.history.command.RebaseInteractiveCurrentHandler">
2899          </class>
2900          <activeWhen>
2901             <and>
2902                <count value="1" />
2903                <iterate>
2904                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2905                   <test property="Git.isSafe" />
2906                </iterate>
2907             </and>
2908          </activeWhen>
2909       </handler>
2910       <handler
2911             commandId="org.eclipse.egit.ui.history.Reset">
2912          <class
2913                class="org.eclipse.egit.ui.internal.history.command.ResetHandler">
2914          </class>
2915          <activeWhen>
2916             <and>
2917                <count value="1" />
2918                <iterate>
2919                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2920                </iterate>
2921             </and>
2922          </activeWhen>
2923       </handler>
2924       <handler
2925             commandId="org.eclipse.egit.ui.history.Revert">
2926          <class
2927                class="org.eclipse.egit.ui.internal.history.command.RevertHandler">
2928          </class>
2929          <activeWhen>
2930             <iterate ifEmpty="false">
2931                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2932                <test property="Git.isBare" value="false" />
2933             </iterate>
2934          </activeWhen>
2935       </handler>
2936       <handler
2937             commandId="org.eclipse.egit.ui.history.SetQuickdiffBaseline">
2938          <class
2939                class="org.eclipse.egit.ui.internal.history.command.SetQuickdiffBaselineHandler">
2940          </class>
2941          <activeWhen>
2942             <and>
2943                <count value="1" />
2944                <iterate>
2945                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2946                </iterate>
2947             </and>
2948          </activeWhen>
2949       </handler>
2950       <handler
2951             commandId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline">
2952          <class
2953                class="org.eclipse.egit.ui.internal.history.command.ResetQuickdiffBaselineHandler">
2954          </class>
2955          <activeWhen>
2956             <iterate ifEmpty="false">
2957                <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2958             </iterate>
2959          </activeWhen>
2960       </handler>
2961       <handler
2962             commandId="org.eclipse.egit.ui.history.Reword">
2963          <class
2964                class="org.eclipse.egit.ui.internal.history.command.RewordHandler">
2965          </class>
2966          <activeWhen>
2967             <and>
2968                <count value="1" />
2969                <iterate>
2970                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2971                   <test property="Git.isSafe" />
2972                   <test property="Git.parentCount" value="1" />
2973                </iterate>
2974             </and>
2975          </activeWhen>
2976       </handler>
2977       <handler
2978             commandId="org.eclipse.egit.ui.history.Edit">
2979          <class
2980                class="org.eclipse.egit.ui.internal.history.command.EditHandler">
2981          </class>
2982          <activeWhen>
2983             <and>
2984                <count value="1" />
2985                <iterate>
2986                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
2987                   <test property="Git.isSafe" />
2988                   <test property="Git.parentCount" value="1" />
2989                </iterate>
2990             </and>
2991          </activeWhen>
2992       </handler>
2993       <handler
2994             commandId="org.eclipse.egit.ui.history.Squash">
2995          <class
2996                class="org.eclipse.egit.ui.internal.history.command.SquashHandler">
2997          </class>
2998          <activeWhen>
2999             <and>
3000                <not>
3001                   <count value="1" />
3002                </not>
3003                <iterate ifEmpty="false">
3004                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3005                   <test property="Git.isSafe" />
3006                </iterate>
3007             </and>
3008          </activeWhen>
3009       </handler>
3010       <handler
3011             commandId="org.eclipse.egit.ui.history.CompareVersions">
3012          <class
3013                class="org.eclipse.egit.ui.internal.history.command.CompareVersionsHandler">
3014          </class>
3015          <activeWhen>
3016             <and>
3017                <count value="2" />
3018                <iterate>
3019                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3020                </iterate>
3021             </and>
3022          </activeWhen>
3023       </handler>
3024       <handler
3025             commandId="org.eclipse.egit.ui.history.CompareVersionsInTree">
3026          <class
3027                class="org.eclipse.egit.ui.internal.history.command.CompareVersionsInTreeHandler">
3028          </class>
3029          <activeWhen>
3030             <and>
3031                <count value="2" />
3032                <iterate>
3033                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3034                </iterate>
3035                <with variable="activePart">
3036                   <test property="GitHistory.isSingleFileHistory" value="false" />
3037                </with>
3038             </and>
3039          </activeWhen>
3040       </handler>
3041    </extension>
3042    <extension
3043          point="org.eclipse.ui.views">
3044       <view
3045             category="org.eclipse.egit.ui.GitCategory"
3046             class="org.eclipse.egit.ui.internal.repository.RepositoriesView"
3047             icon="icons/eview16/repo_rep.png"
3048             id="org.eclipse.egit.ui.RepositoriesView"
3049             name="%GitRepositoriesView_name"
3050             restorable="true">
3051       </view>
3052       <view
3053             category="org.eclipse.egit.ui.GitCategory"
3054             class="org.eclipse.egit.ui.internal.staging.StagingView"
3055             icon="icons/eview16/staging.png"
3056             id="org.eclipse.egit.ui.StagingView"
3057             name="%GitStagingView_name">
3058       </view>
3059       <view
3060             category="org.eclipse.egit.ui.GitCategory"
3061             class="org.eclipse.egit.ui.internal.rebase.RebaseInteractiveView"
3062             icon="icons/eview16/rebase_interactive.png"
3063             id="org.eclipse.egit.ui.InteractiveRebaseView"
3064             name="%GitInteractiveRebaseView_name">
3065       </view>
3066       <category
3067             id="org.eclipse.egit.ui.GitCategory"
3068             name="%GitCategory_name">
3069       </category>
3070       <view
3071             category="org.eclipse.egit.ui.GitCategory"
3072             class="org.eclipse.egit.ui.internal.dialogs.CompareTreeView"
3073             icon="icons/obj16/gitrepository.png"
3074             id="org.eclipse.egit.ui.CompareTreeView"
3075             name="%TreeCompareView.name"
3076             restorable="false">
3077       </view>
3078       <view
3079             allowMultiple="false"
3080             category="org.eclipse.egit.ui.GitCategory"
3081             class="org.eclipse.egit.ui.internal.reflog.ReflogView"
3082             icon="icons/eview16/reflog.png"
3083             id="org.eclipse.egit.ui.ReflogView"
3084             name="%ReflogView">
3085       </view>
3086    </extension>
3087    <extension
3088          point="org.eclipse.ui.perspectives">
3089       <perspective
3090             class="org.eclipse.egit.ui.GitRepositoriesPerspectiveFactory"
3091             icon="icons/obj16/gitrepository.png"
3092             id="org.eclipse.egit.ui.GitRepositoryExploring"
3093             name="%GitRepositoryPerspective_name">
3094       </perspective>
3095    </extension>
3096    <extension
3097          point="org.eclipse.ui.perspectiveExtensions">
3098       <perspectiveExtension
3099             targetID="org.eclipse.ui.resourcePerspective">
3100          <showInPart
3101                id="org.eclipse.egit.ui.RepositoriesView">
3102          </showInPart>
3103       </perspectiveExtension>
3104       <perspectiveExtension
3105             targetID="org.eclipse.jdt.ui.JavaPerspective">
3106          <showInPart
3107                id="org.eclipse.egit.ui.RepositoriesView">
3108          </showInPart>
3109          <view
3110                id="org.eclipse.egit.ui.RepositoriesView"
3111                minimized="false"
3112                ratio="0.6"
3113                relationship="bottom"
3114                relative="org.eclipse.jdt.ui.PackageExplorer"
3115                visible="false">
3116          </view>
3117       </perspectiveExtension>
3118       <perspectiveExtension
3119             targetID="org.eclipse.debug.ui.DebugPerspective">
3120          <showInPart
3121                id="org.eclipse.egit.ui.RepositoriesView">
3122          </showInPart>
3123       </perspectiveExtension>
3124       <perspectiveExtension
3125             targetID="org.eclipse.pde.ui.PDEPerspective">
3126          <showInPart
3127                id="org.eclipse.egit.ui.RepositoriesView">
3128          </showInPart>
3129          <view
3130                id="org.eclipse.egit.ui.RepositoriesView"
3131                minimized="false"
3132                ratio="0.6"
3133                relationship="bottom"
3134                relative="org.eclipse.jdt.ui.PackageExplorer"
3135                visible="false">
3136          </view>
3137       </perspectiveExtension>
3138    </extension>
3139    <extension
3140          point="org.eclipse.ui.navigator.navigatorContent">
3141       <navigatorContent
3142             contentProvider="org.eclipse.egit.ui.internal.repository.RepositoriesViewExtensionFactory:org.eclipse.egit.ui.internal.repository.RepositoriesViewContentProvider"
3143             icon="icons/obj16/repository_rep.png"
3144             id="org.eclipse.egit.ui.RepositoriesViewContent"
3145             labelProvider="org.eclipse.egit.ui.internal.repository.RepositoriesViewLabelProvider"
3146             name="%GitRepositoriesContentName">
3147          <enablement>
3148             <or>
3149                <instanceof
3150                      value="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
3151                </instanceof>
3152                <instanceof
3153                      value="org.eclipse.core.resources.IWorkspaceRoot">
3154                </instanceof>
3155             </or>
3156          </enablement>
3157          <commonSorter
3158                class="org.eclipse.egit.ui.internal.repository.tree.RepositoriesViewSorter">
3159          </commonSorter>
3160          <dropAssistant
3161                class="org.eclipse.egit.ui.internal.repository.DropAdapterAssistant"
3162                id="org.eclipse.egit.ui.repositoriesView.dropAssistant">
3163             <possibleDropTargets>
3164                <instanceof
3165                      value="org.eclipse.core.resources.IWorkspaceRoot">
3166                </instanceof></possibleDropTargets>
3167          </dropAssistant>
3168          <actionProvider
3169                class="org.eclipse.egit.ui.internal.repository.RepositoriesViewActionProvider">
3170          </actionProvider>
3171       </navigatorContent>
3172    </extension>
3173    <extension
3174          point="org.eclipse.ui.navigator.viewer">
3175       <viewer
3176             viewerId="org.eclipse.egit.ui.RepositoriesView">
3177          <options>
3178             <!-- Hide the "Available Customizations" dialog completely. This includes hiding the
3179             filters and the available content extensions. -->
3180             <property
3181                name="org.eclipse.ui.navigator.hideAvailableCustomizationsDialog"
3182                value="true"/>
3183             <!-- Hide the "Link with Editor" action from the toolbar of the viewer -->
3184             <property
3185                name="org.eclipse.ui.navigator.hideLinkWithEditorAction"
3186                value="true"/>
3187          </options>
3188          <popupMenu>
3189             <insertionPoint
3190                   name="branch"
3191                   separator="true">
3192             </insertionPoint>
3193             <insertionPoint
3194                   name="remotes"
3195                   separator="true">
3196             </insertionPoint>
3197             <insertionPoint
3198                   name="tag"
3199                   separator="true">
3200             </insertionPoint>
3201             <insertionPoint
3202                   name="remote"
3203                   separator="true">
3204             </insertionPoint>
3205             <insertionPoint
3206                   name="repo-0"
3207                   separator="true">
3208             </insertionPoint>
3209             <insertionPoint
3210                   name="repo-1"
3211                   separator="true">
3212             </insertionPoint>
3213             <insertionPoint
3214                   name="repo-commit"
3215                   separator="true">
3216             </insertionPoint>
3217             <insertionPoint
3218                   name="repo-2"
3219                   separator="true">
3220             </insertionPoint>
3221             <insertionPoint
3222                   name="repo-3"
3223                   separator="true">
3224             </insertionPoint>
3225             <insertionPoint
3226                   name="group.open"
3227                   separator="true">
3228             </insertionPoint>
3229             <insertionPoint
3230                   name="group.show"
3231                   separator="false">
3232             </insertionPoint>
3233             <insertionPoint
3234                   name="repo-4"
3235                   separator="true">
3236             </insertionPoint>
3237             <insertionPoint
3238                   name="repo-5"
3239                   separator="true">
3240             </insertionPoint>
3241             <insertionPoint
3242                   name="repo-6"
3243                   separator="true">
3244             </insertionPoint>
3245             <insertionPoint
3246                   name="group.properties"
3247                   separator="true">
3248             </insertionPoint>
3249          </popupMenu>
3250       </viewer>
3251       <viewerContentBinding
3252             viewerId="org.eclipse.egit.ui.RepositoriesView">
3253          <includes>
3254             <contentExtension
3255                   pattern="org.eclipse.egit.ui.RepositoriesViewContent">
3256             </contentExtension>
3257             <contentExtension
3258                   pattern="org.eclipse.egit.ui.RepositoriesViewLinkHelper">
3259             </contentExtension>
3260          </includes>
3261       </viewerContentBinding>
3262       <dragAssistant
3263             viewerId="org.eclipse.egit.ui.RepositoriesView"
3264             class="org.eclipse.egit.ui.internal.repository.RepositoryDragAssistant">
3265       </dragAssistant>
3266       <viewerActionBinding
3267             viewerId="org.eclipse.egit.ui.RepositoriesView">
3268          <includes>
3269             <actionExtension
3270                   pattern="org.eclipse.ui.navigator.resources.UndoRedoActionProvider">
3271             </actionExtension>
3272          </includes>
3273       </viewerActionBinding>
3274    </extension>
3275    <extension
3276          point="org.eclipse.ui.menus">
3277       <menuContribution
3278             locationURI="popup:org.eclipse.egit.ui.historyPageContributions?after=history.group">
3279          <command
3280               commandId="org.eclipse.egit.ui.history.CompareWithWorkingTree"
3281               label="%HistoryCompareWithWorkspace.label"
3282               style="push">
3283             <visibleWhen checkEnabled="true" />
3284          </command>
3285          <command
3286               commandId="org.eclipse.egit.ui.history.CompareWithHead"
3287               label="%HistoryCompareWithHead.label"
3288               style="push">
3289             <visibleWhen checkEnabled="true" />
3290          </command>
3291          <command
3292               commandId="org.eclipse.egit.ui.history.ShowVersions"
3293               label="%HistoryShowVersions.label"
3294               style="push">
3295             <visibleWhen checkEnabled="true" />
3296          </command>
3297          <command
3298               commandId="org.eclipse.egit.ui.history.OpenInTextEditorCommand"
3299               label="%HistoryOpenInTextEditorCommand.label"
3300               style="push">
3301             <visibleWhen checkEnabled="true" />
3302          </command>
3303          <command
3304               commandId="org.eclipse.egit.ui.history.ShowBlame"
3305               label="%HistoryShowBlame.label"
3306               style="push">
3307             <visibleWhen checkEnabled="true" />
3308          </command>
3309          <command
3310               commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
3311               label="%HistoryOpenInCommitViewer.label"
3312               style="push">
3313             <visibleWhen checkEnabled="true" />
3314          </command>
3315          <command
3316               commandId="org.eclipse.egit.ui.history.CompareVersions"
3317               label="%HistoryCompareVersions.label"
3318               style="push">
3319             <visibleWhen checkEnabled="true" />
3320          </command>
3321          <command
3322               commandId="org.eclipse.egit.ui.history.CompareVersionsInTree"
3323               label="%HistoryCompareVersionsInTree.label"
3324               style="push">
3325             <visibleWhen checkEnabled="true" />
3326          </command>
3327          <separator name="##Checkout" visible="true" />
3328          <command
3329               commandId="org.eclipse.egit.ui.history.CheckoutCommand"
3330               label="%HistoryCheckoutCommand.label"
3331               style="push">
3332             <visibleWhen>
3333                <and>
3334                   <count value="1"/>
3335                   <iterate>
3336                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3337                      <test property="Git.isBare" value="false" />
3338                      <test property="Git.hasMultipleRefs" args="refs/heads/" value="false" />
3339                   </iterate>
3340                </and>
3341             </visibleWhen>
3342          </command>
3343          <command
3344               commandId="org.eclipse.egit.ui.history.CheckoutCommand"
3345               label="%HistoryCheckoutCommand.label2"
3346               style="push">
3347             <visibleWhen>
3348                <and>
3349                   <count value="1"/>
3350                   <iterate>
3351                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3352                      <test property="Git.isBare" value="false" />
3353                      <test property="Git.hasMultipleRefs" args="refs/heads/"/>
3354                   </iterate>
3355                </and>
3356             </visibleWhen>
3357          </command>
3358          <command
3359               commandId="org.eclipse.egit.ui.history.PushCommit"
3360               label="%HistoryPushCommit.label"
3361               style="push">
3362             <visibleWhen checkEnabled="true" />
3363          </command>
3364          <separator name="##Refs" visible="true" />
3365          <command
3366               commandId="org.eclipse.egit.ui.history.CreateBranch"
3367               label="%HistoryCreateBranch.label"
3368               style="push">
3369             <visibleWhen checkEnabled="true" />
3370          </command>
3371          <command
3372               commandId="org.eclipse.egit.ui.history.DeleteBranch"
3373               label="%HistoryDeleteBranch.label"
3374               style="push">
3375             <visibleWhen checkEnabled="true" />
3376          </command>
3377          <command
3378                commandId="org.eclipse.ui.edit.rename"
3379                icon="icons/obj16/editconfig.png"
3380                label="%HistoryRenameBranch.label"
3381                style="push">
3382             <visibleWhen checkEnabled="true" />
3383          </command>
3384          <command
3385               commandId="org.eclipse.egit.ui.history.CreateTag"
3386               label="%HistoryCreateTag.label"
3387               style="push">
3388             <visibleWhen checkEnabled="true" />
3389          </command>
3390          <command
3391               commandId="org.eclipse.egit.ui.history.DeleteTag"
3392               label="%HistoryDeleteTag.label"
3393               style="push">
3394             <visibleWhen checkEnabled="true" />
3395          </command>
3396          <separator name="##Commits" visible="true" />
3397          <command
3398               commandId="org.eclipse.egit.ui.history.CreatePatch"
3399               label="%HistoryCreatePatch.label"
3400               style="push">
3401             <visibleWhen checkEnabled="true" />
3402          </command>
3403          <command
3404               commandId="org.eclipse.egit.ui.history.CherryPick"
3405               label="%HistoryCherryPick.label"
3406               style="push">
3407             <visibleWhen checkEnabled="true" />
3408          </command>
3409          <command
3410               commandId="org.eclipse.egit.ui.history.Merge"
3411               label="%HistoryMerge.label"
3412               style="push">
3413             <visibleWhen checkEnabled="true" />
3414          </command>
3415          <command
3416               commandId="org.eclipse.egit.ui.RebaseCurrent"
3417               label="%HistoryRebaseCurrent.label"
3418               style="push">
3419             <visibleWhen checkEnabled="true" />
3420          </command>
3421          <command
3422               commandId="org.eclipse.egit.ui.RebaseInteractiveCurrent"
3423               label="%HistoryRebaseInteractive.label"
3424               style="push">
3425             <visibleWhen checkEnabled="true" />
3426          </command>
3427          <separator name="##Reset" visible="true" />
3428          <!-- Reset submenu -->
3429          <menu
3430                icon="icons/obj16/reset.png"
3431                id="org.eclipse.egit.ui.history.resetMenu"
3432                label="%HistoryResetMenu.label">
3433             <visibleWhen>
3434                <and>
3435                   <count value="1" />
3436                   <iterate>
3437                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3438                   </iterate>
3439                </and>
3440             </visibleWhen>
3441             <command
3442                  commandId="org.eclipse.egit.ui.history.Reset"
3443                  label="%HistoryResetSoft.label"
3444                  style="push">
3445                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="SOFT" />
3446                <visibleWhen checkEnabled="true" />
3447             </command>
3448             <command
3449                  commandId="org.eclipse.egit.ui.history.Reset"
3450                  label="%HistoryResetMixed.label"
3451                  style="push">
3452                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="MIXED" />
3453                <visibleWhen checkEnabled="true" />
3454             </command>
3455             <command
3456                  commandId="org.eclipse.egit.ui.history.Reset"
3457                  label="%HistoryResetHard.label"
3458                  style="push">
3459                <parameter name="org.eclipse.egit.ui.history.ResetMode" value="HARD" />
3460                <visibleWhen checkEnabled="true" />
3461             </command>
3462          </menu>
3463          <command
3464               commandId="org.eclipse.egit.ui.history.Revert"
3465               label="%HistoryRevert.label"
3466               style="push">
3467             <visibleWhen checkEnabled="true" />
3468          </command>
3469          <separator name="##Submenus" visible="true" />
3470          <!-- QuickDiff submenu -->
3471          <menu
3472                id="org.eclipse.egit.ui.history.quickDiff"
3473                label="%HistoryQuickdiffMenu.label">
3474             <visibleWhen>
3475                <and>
3476                   <count value="1" />
3477                   <iterate>
3478                      <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3479                   </iterate>
3480                </and>
3481             </visibleWhen>
3482             <command
3483                  commandId="org.eclipse.egit.ui.history.SetQuickdiffBaseline"
3484                  label="%HistoryQuickdiffSet.label"
3485                  style="push">
3486                <visibleWhen checkEnabled="true" />
3487             </command>
3488             <command
3489                  commandId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline"
3490                  label="%HistoryResetQuickDiffHead.label"
3491                  style="push">
3492                <parameter name="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget" value="HEAD" />
3493                <visibleWhen checkEnabled="true" />
3494             </command>
3495             <command
3496                  commandId="org.eclipse.egit.ui.history.ResetQuickdiffBaseline"
3497                  label="%HistoryResetQuickDiffHeadParent.label"
3498                  style="push">
3499                <parameter name="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget" value="HEAD^1" />
3500                <visibleWhen checkEnabled="true" />
3501             </command>
3502          </menu>
3503          <!-- Modify submenu -->
3504          <menu
3505                id="org.eclipse.egit.ui.history.modify"
3506                label="%HistoryModifyMenu.label">
3507             <visibleWhen>
3508                <iterate ifEmpty="false" >
3509                   <instanceof value="org.eclipse.egit.ui.internal.history.SWTCommit" />
3510                </iterate>
3511             </visibleWhen>
3512             <command
3513                  commandId="org.eclipse.egit.ui.history.Reword"
3514                  label="%HistoryModifyReword.label"
3515                  style="push">
3516                <visibleWhen checkEnabled="true" />
3517             </command>
3518             <command
3519                  commandId="org.eclipse.egit.ui.history.Edit"
3520                  label="%HistoryModifyEdit.label"
3521                  style="push">
3522                <visibleWhen checkEnabled="true" />
3523             </command>
3524             <command
3525                  commandId="org.eclipse.egit.ui.history.Squash"
3526                  label="%HistoryModifySquash.label"
3527                  style="push">
3528                <visibleWhen checkEnabled="true" />
3529             </command>
3530          </menu>
3531       </menuContribution>
3532       <menuContribution
3533             allPopups="false"
3534             locationURI="popup:org.eclipse.egit.ui.historyPageContributions?after=additions">
3535             <command
3536                commandId="org.eclipse.egit.ui.ImportChangedProjectsCommandId"
3537                icon="icons/obj16/import_prj.png"
3538                label="%ImportChangedProjects.label"
3539                style="push">
3540             <visibleWhen checkEnabled="true" />
3541          </command>
3542       </menuContribution>
3543       <menuContribution
3544             allPopups="false"
3545             locationURI="popup:org.eclipse.egit.ui.InteractiveRebaseView?after=additions">
3546          <command
3547                commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
3548                label="%RebaseInteractiveOpenInCommitViewer.label"
3549                style="push">
3550             <visibleWhen checkEnabled="true" />
3551          </command>
3552       </menuContribution>
3553       <menuContribution
3554             locationURI="popup:org.eclipse.egit.ui.internal.reflogview.popup">
3555          <command
3556                commandId="org.eclipse.egit.ui.internal.reflog.CheckoutCommand"
3557                icon="icons/obj16/checkout.png"
3558                label="%RefLogViewCheckout.label"
3559                style="push">
3560          </command>
3561          <command
3562                commandId="org.eclipse.egit.ui.internal.reflog.OpenInCommitViewerCommand"
3563                label="%RefLogViewOpenInCommitViewer.label"
3564                style="push">
3565          </command>
3566          <command
3567                commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand"
3568                label="%ReflogCopyCommand.label"
3569                style="push">
3570          </command>
3571       </menuContribution>
3572       <menuContribution
3573             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=branch">
3574          <command
3575                commandId="org.eclipse.egit.ui.CheckoutCommand"
3576                icon="icons/obj16/checkout.png"
3577                label="%RepoViewCheckout.label"
3578                style="push">
3579             <visibleWhen checkEnabled="true" />
3580          </command>
3581          <command
3582                commandId="org.eclipse.egit.ui.team.Push"
3583                icon="icons/obj16/push.png"
3584                label="%RepoViewPushBranch.label"
3585                style="push">
3586             <visibleWhen
3587                   checkEnabled="false">
3588                <and>
3589                   <count
3590                         value="1">
3591                   </count>
3592                   <iterate>
3593                      <instanceof
3594                            value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3595                      </instanceof>
3596                   </iterate>
3597                </and>
3598             </visibleWhen>
3599          </command>
3600          <command
3601                commandId="org.eclipse.egit.ui.team.Push"
3602                icon="icons/obj16/push.png"
3603                label="%RepoViewPushTag.label"
3604                style="push">
3605             <visibleWhen
3606                   checkEnabled="false">
3607                <and>
3608                   <count
3609                         value="+">
3610                   </count>
3611                   <iterate>
3612                      <instanceof
3613                            value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
3614                      </instanceof>
3615                   </iterate>
3616                </and>
3617             </visibleWhen>
3618          </command>
3619          <command
3620                commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
3621                icon="icons/obj16/new_branch_obj.png"
3622                label="%RepoViewCreateBranch.label"
3623                style="push">
3624             <visibleWhen checkEnabled="true" />
3625          </command>
3626          <command
3627                commandId="org.eclipse.ui.edit.rename"
3628                icon="icons/obj16/editconfig.png"
3629                label="%RepoViewRenameBranch.label"
3630                style="push">
3631             <visibleWhen
3632                   checkEnabled="false">
3633                <and>
3634                   <count
3635                         value="1">
3636                   </count>
3637                   <iterate>
3638                      <instanceof
3639                            value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3640                      </instanceof>
3641                   </iterate>
3642                </and>
3643             </visibleWhen>
3644          </command>
3645          <command
3646                commandId="org.eclipse.egit.ui.RepositoriesViewConfigureBranch"
3647                label="%ConfigurBranchCommand.label"
3648                style="push">
3649             <visibleWhen checkEnabled="true" />
3650          </command>
3651          <command
3652                commandId="org.eclipse.ui.edit.delete"
3653                label="%RepoViewDeleteBranch.label"
3654                style="push">
3655             <visibleWhen
3656                   checkEnabled="false">
3657                <and>
3658                   <count
3659                         value="+">
3660                   </count>
3661                   <iterate>
3662                      <and>
3663                         <or>
3664                            <instanceof
3665                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3666                            </instanceof>
3667                            <instanceof
3668                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchHierarchyNode">
3669                            </instanceof>
3670                            <test
3671                                  property="GitRepository.isLocalBranch">
3672                            </test>
3673                         </or>
3674                         <not>
3675                            <test
3676                                  property="GitRepository.isRefCheckedOut">
3677                            </test>
3678                         </not>
3679                      </and>
3680                   </iterate>
3681                </and>
3682             </visibleWhen>
3683          </command>
3684          <separator
3685                name="##Branch-2"
3686                visible="true">
3687          </separator>
3688          <command
3689                commandId="org.eclipse.egit.ui.team.Merge"
3690                icon="icons/obj16/merge.png"
3691                label="%RepoViewMergeSimple.label"
3692                style="push">
3693             <visibleWhen
3694                   checkEnabled="false">
3695                <and>
3696                   <count
3697                         value="1">
3698                   </count>
3699                   <iterate>
3700                      <and>
3701                         <or>
3702                            <instanceof
3703                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
3704                            </instanceof>
3705                            <instanceof
3706                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3707                            </instanceof>
3708                         </or>
3709                         <test
3710                               property="GitRepository.canMerge">
3711                         </test>
3712                         <not>
3713                            <test
3714                                  property="GitRepository.isRefCheckedOut">
3715                            </test>
3716                         </not>
3717                      </and>
3718                   </iterate>
3719                </and>
3720             </visibleWhen>
3721          </command>
3722          <command
3723                commandId="org.eclipse.ui.edit.delete"
3724                label="%DeleteTagCommand.name"
3725                style="push">
3726             <visibleWhen
3727                   checkEnabled="false">
3728                <and>
3729                   <count
3730                         value="+">
3731                   </count>
3732                   <iterate>
3733                      <instanceof
3734                            value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
3735                      </instanceof>
3736                   </iterate>
3737                </and>
3738             </visibleWhen>
3739          </command>
3740          <command
3741                commandId="org.eclipse.egit.ui.team.Rebase"
3742                label="%RebaseCommand.label"
3743                style="push">
3744             <visibleWhen
3745                   checkEnabled="false">
3746                <and>
3747                   <count
3748                         value="1">
3749                   </count>
3750                   <iterate>
3751                      <and>
3752                         <test
3753                               property="GitRepository.canMerge">
3754                         </test>
3755                         <and>
3756                            <instanceof
3757                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3758                            </instanceof>
3759                            <not>
3760                               <test
3761                                     property="GitRepository.isRefCheckedOut">
3762                               </test>
3763                            </not>
3764                         </and>
3765                      </and>
3766                   </iterate>
3767                </and>
3768             </visibleWhen>
3769          </command>
3770          <command
3771                commandId="org.eclipse.egit.ui.team.Synchronize"
3772                icon="icons/obj16/synchronize.png"
3773                label="%RepoViewSynchronize.label"
3774                style="push">
3775             <visibleWhen
3776                   checkEnabled="false">
3777                <and>
3778                   <count
3779                         value="1">
3780                   </count>
3781                   <iterate>
3782                      <and>
3783                         <or>
3784                            <instanceof
3785                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
3786                            </instanceof>
3787                            <instanceof
3788                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3789                            </instanceof>
3790                         </or>
3791                         <not>
3792                            <test
3793                                  property="GitRepository.isBare">
3794                            </test>
3795                         </not>
3796                      </and>
3797                   </iterate>
3798                </and>
3799             </visibleWhen>
3800          </command>
3801          <command
3802                commandId="org.eclipse.egit.ui.team.Synchronize"
3803                icon="icons/obj16/synchronize.png"
3804                label="%RepoViewSynchronizeEachOther.label"
3805                style="push">
3806             <visibleWhen
3807                   checkEnabled="false">
3808                <and>
3809                   <count
3810                         value="2">
3811                   </count>
3812                   <iterate>
3813                      <and>
3814                         <or>
3815                            <instanceof
3816                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
3817                            </instanceof>
3818                            <instanceof
3819                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
3820                            </instanceof>
3821                         </or>
3822                         <not>
3823                            <test
3824                                  property="GitRepository.isBare">
3825                            </test>
3826                         </not>
3827                      </and>
3828                   </iterate>
3829                </and>
3830             </visibleWhen>
3831          </command>
3832       </menuContribution>
3833       <menuContribution
3834             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=remotes">
3835                      <command
3836                commandId="org.eclipse.egit.ui.RepositoriesViewNewRemote"
3837                label="%RepoViewCreateRemote.label"
3838                style="push">
3839             <visibleWhen checkEnabled="true" />
3840          </command>
3841          <command
3842                commandId="org.eclipse.egit.ui.team.SimplePush"
3843                icon="icons/obj16/push.png"
3844                label="%RepoViewPushSimpleLabel"
3845                style="push">
3846             <visibleWhen
3847                   checkEnabled="false">
3848                <and>
3849                   <count
3850                         value="1">
3851                   </count>
3852                   <iterate
3853                         ifEmpty="false"
3854                         operator="and">
3855                      <or>
3856                         <instanceof
3857                               value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
3858                         </instanceof>
3859                         <instanceof
3860                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
3861                         </instanceof>
3862                      </or>
3863                   </iterate>
3864                </and>
3865             </visibleWhen>
3866          </command>
3867          <command
3868                commandId="org.eclipse.egit.ui.team.SimpleFetch"
3869                icon="icons/obj16/fetch.png"
3870                label="%RepoViewFetchSimple.label"
3871                style="push">
3872             <visibleWhen
3873                   checkEnabled="false">
3874                <and>
3875                   <count
3876                         value="1">
3877                   </count>
3878                   <iterate
3879                         ifEmpty="false"
3880                         operator="and">
3881                      <or>
3882                         <instanceof
3883                               value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
3884                         </instanceof>
3885                         <instanceof
3886                               value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
3887                         </instanceof>
3888                      </or>
3889                   </iterate>
3890                </and>
3891             </visibleWhen>
3892          </command>
3893       </menuContribution>
3894       <menuContribution
3895             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=tag">
3896          <command
3897                commandId="org.eclipse.egit.ui.team.Tag"
3898                icon="icons/obj16/new_tag_obj.png"
3899                label="%RepoViewCreateTag.label"
3900                style="push">
3901             <visibleWhen
3902                   checkEnabled="false">
3903                <and>
3904                   <count
3905                         value="1">
3906                   </count>
3907                   <iterate>
3908                      <or>
3909                         <instanceof
3910                               value="org.eclipse.egit.ui.internal.repository.tree.TagsNode">
3911                         </instanceof>
3912                      </or>
3913                   </iterate>
3914                </and>
3915             </visibleWhen>
3916          </command>
3917          <command
3918                commandId="org.eclipse.egit.ui.team.PushTags"
3919                label="%PushTagsCommand.label"
3920                style="push">
3921             <visibleWhen
3922                   checkEnabled="false">
3923                <and>
3924                   <count
3925                         value="1">
3926                   </count>
3927                   <iterate>
3928                      <or>
3929                         <instanceof
3930                               value="org.eclipse.egit.ui.internal.repository.tree.TagsNode">
3931                         </instanceof>
3932                      </or>
3933                   </iterate>
3934                </and>
3935             </visibleWhen>
3936          </command>
3937       </menuContribution>
3938       <menuContribution
3939             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=remote">
3940          <command
3941                commandId="org.eclipse.egit.ui.RepositoriesViewConfigureFetch"
3942                icon="icons/obj16/editconfig.png"
3943                label="%RepoViewConfigureFetch.label"
3944                style="push">
3945             <visibleWhen checkEnabled="true" />
3946          </command>
3947          <command
3948                commandId="org.eclipse.egit.ui.RepositoriesViewConfigurePush"
3949                icon="icons/obj16/editconfig.png"
3950                label="%RepoViewConfigurePush.label"
3951                style="push">
3952             <visibleWhen checkEnabled="true" />
3953          </command>
3954          <command
3955                commandId="org.eclipse.egit.ui.RepositoriesViewChangeCredentials"
3956                label="%RepoViewChangeCredentialsLabel"
3957                style="push">
3958             <visibleWhen checkEnabled="true"/>
3959          </command>
3960          <command
3961                commandId="org.eclipse.egit.ui.RepositoriesViewClearCredentials"
3962                label="%RepoViewClearCredentialsLabel"
3963                style="push">
3964             <visibleWhen checkEnabled="true" />
3965          </command>
3966          <command
3967                commandId="org.eclipse.ui.edit.delete"
3968                label="%RepoViewDeleteFetch.label"
3969                style="push">
3970             <visibleWhen
3971                   checkEnabled="false">
3972                <and>
3973                   <count
3974                         value="1">
3975                   </count>
3976                   <iterate
3977                         ifEmpty="false"
3978                         operator="and">
3979                      <instanceof
3980                            value="org.eclipse.egit.ui.internal.repository.tree.FetchNode">
3981                      </instanceof>
3982                   </iterate>
3983                </and>
3984             </visibleWhen>
3985          </command>
3986          <command
3987                commandId="org.eclipse.ui.edit.delete"
3988                label="%RepoViewDeletePush.label"
3989                style="push">
3990             <visibleWhen
3991                   checkEnabled="false">
3992                <and>
3993                   <count
3994                         value="1">
3995                   </count>
3996                   <iterate
3997                         ifEmpty="false"
3998                         operator="and">
3999                      <instanceof
4000                            value="org.eclipse.egit.ui.internal.repository.tree.PushNode">
4001                      </instanceof>
4002                   </iterate>
4003                </and>
4004             </visibleWhen>
4005          </command>
4006          <command
4007                commandId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote"
4008                label="%RepoViewConfigureGerritRemote.label"
4009                style="push">
4010             <visibleWhen
4011                   checkEnabled="false">
4012                <and>
4013                   <count
4014                         value="1">
4015                   </count>
4016                   <iterate
4017                         ifEmpty="false"
4018                         operator="and">
4019                      <instanceof
4020                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
4021                      </instanceof>
4022                   </iterate>
4023                </and>
4024             </visibleWhen>
4025          </command>
4026          <command
4027                commandId="org.eclipse.ui.edit.delete"
4028                label="%RepoViewRemoveRemote.label"
4029                style="push">
4030             <visibleWhen
4031                   checkEnabled="false">
4032                <and>
4033                   <count
4034                         value="1">
4035                   </count>
4036                   <iterate
4037                         ifEmpty="false"
4038                         operator="and">
4039                      <instanceof
4040                            value="org.eclipse.egit.ui.internal.repository.tree.RemoteNode">
4041                      </instanceof>
4042                   </iterate>
4043                </and>
4044             </visibleWhen>
4045          </command>
4046       </menuContribution>
4047       <menuContribution
4048             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-0">
4049          <menu
4050                icon="icons/obj16/branches_obj.png"
4051                label="%SwitchToMenu.label">
4052             <dynamic
4053                   class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
4054                   id="org.eclipse.egit.ui.switchToMenu">
4055             </dynamic>
4056             <visibleWhen
4057                   checkEnabled="false">
4058                <and>
4059                   <count
4060                         value="1">
4061                   </count>
4062                   <iterate
4063                         ifEmpty="false"
4064                         operator="and">
4065                      <and>
4066                         <or>
4067                            <instanceof
4068                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4069                            </instanceof>
4070                            <instanceof
4071                                  value="org.eclipse.egit.ui.internal.repository.tree.BranchesNode">
4072                            </instanceof>
4073                            <instanceof
4074                                  value="org.eclipse.egit.ui.internal.repository.tree.LocalNode">
4075                            </instanceof>
4076                         </or>
4077                         <not>
4078                            <test
4079                                  property="GitRepository.isBare">
4080                            </test>
4081                         </not>
4082                      </and>
4083                   </iterate>
4084                </and>
4085             </visibleWhen>
4086          </menu>
4087       </menuContribution>
4088       <menuContribution
4089             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-1">
4090          <command
4091                commandId="org.eclipse.egit.ui.team.Commit"
4092                icon="icons/obj16/commit.png"
4093                label="%RepoViewCommit.label"
4094                style="push">
4095             <visibleWhen
4096                   checkEnabled="false">
4097                <and>
4098                   <count
4099                         value="1">
4100                   </count>
4101                   <iterate
4102                         ifEmpty="false"
4103                         operator="and">
4104                      <and>
4105                         <instanceof
4106                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4107                         </instanceof>
4108                         <not>
4109                            <test
4110                                  property="GitRepository.isBare">
4111                            </test>
4112                         </not>
4113                      </and>
4114                   </iterate>
4115                </and>
4116             </visibleWhen>
4117          </command>
4118          <menu
4119                label="%StashesMenu.label">
4120             <dynamic
4121                   class="org.eclipse.egit.ui.internal.actions.StashesMenu"
4122                   id="org.eclipse.egit.ui.stashedChanges">
4123             </dynamic>
4124             <visibleWhen
4125                   checkEnabled="false">
4126                <and>
4127                   <count
4128                         value="1">
4129                   </count>
4130                   <iterate>
4131                      <and>
4132                         <instanceof
4133                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4134                         </instanceof>
4135                         <not>
4136                            <test
4137                                  property="GitRepository.isSubmodule">
4138                            </test>
4139                         </not>
4140                         <not>
4141                            <test
4142                                  property="GitRepository.isBare">
4143                            </test>
4144                         </not>
4145                         <test
4146                               property="GitRepository.canStash">
4147                         </test>
4148                         <test
4149                               property="GitRepository.containsHead">
4150                         </test>
4151                      </and>
4152                   </iterate>
4153                </and>
4154             </visibleWhen>
4155          </menu>
4156          <command
4157                commandId="org.eclipse.egit.ui.team.stash.apply"
4158                label="%StashApplyCommand.label"
4159                style="push">
4160             <visibleWhen
4161                   checkEnabled="false">
4162                <and>
4163                   <count
4164                         value="1">
4165                   </count>
4166                   <iterate>
4167                      <and>
4168                         <instanceof
4169                               value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode">
4170                         </instanceof>
4171                         <not>
4172                            <test
4173                                  property="GitRepository.isBare">
4174                            </test>
4175                         </not>
4176                         <test
4177                               property="GitRepository.isSafe">
4178                         </test>
4179                      </and>
4180                   </iterate>
4181                </and>
4182             </visibleWhen>
4183          </command>
4184          <command
4185                commandId="org.eclipse.ui.edit.delete"
4186                label="%StashDropCommand.label"
4187                style="push">
4188             <visibleWhen
4189                   checkEnabled="false">
4190                <and>
4191                   <count
4192                         value="+">
4193                   </count>
4194                   <iterate>
4195                      <and>
4196                         <instanceof
4197                               value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode">
4198                         </instanceof>
4199                         <not>
4200                            <test
4201                                  property="GitRepository.isBare">
4202                            </test>
4203                         </not>
4204                         <test
4205                               property="GitRepository.isSafe">
4206                         </test>
4207                      </and>
4208                   </iterate>
4209                </and>
4210             </visibleWhen>
4211          </command>
4212       </menuContribution>
4213       <menuContribution
4214             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-commit">
4215          <command
4216                commandId="org.eclipse.egit.ui.team.SimplePush"
4217                icon="icons/obj16/push.png"
4218                label="%PushToUpstreamCommand.label"
4219                style="push">
4220             <visibleWhen
4221                   checkEnabled="false">
4222                <and>
4223                   <count
4224                         value="1">
4225                   </count>
4226                   <iterate
4227                         ifEmpty="false"
4228                         operator="and">
4229                      <instanceof
4230                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4231                      </instanceof>
4232                   </iterate>
4233                </and>
4234             </visibleWhen>
4235          </command>
4236          <command
4237                commandId="org.eclipse.egit.ui.team.SimpleFetch"
4238                icon="icons/obj16/fetch.png"
4239                label="%FetchFromUpstreamCommand.label"
4240                style="push">
4241             <visibleWhen
4242                   checkEnabled="false">
4243                <and>
4244                   <count
4245                         value="1">
4246                   </count>
4247                   <iterate
4248                         ifEmpty="false"
4249                         operator="and">
4250                      <instanceof
4251                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4252                      </instanceof>
4253                   </iterate>
4254                </and>
4255             </visibleWhen>
4256          </command>
4257          <command
4258                commandId="org.eclipse.egit.ui.PushHeadToGerrit"
4259                label="%PushToGerritMenu.label"
4260                style="push">
4261             <visibleWhen
4262                   checkEnabled="false">
4263                <and>
4264                   <count
4265                         value="1">
4266                   </count>
4267                   <iterate>
4268                      <and>
4269                         <instanceof
4270                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4271                         </instanceof>
4272                         <test
4273                               property="GitRepository.canPushToGerrit">
4274                         </test>
4275                      </and>
4276                   </iterate>
4277                </and>
4278             </visibleWhen>
4279          </command>
4280          <command
4281                commandId="org.eclipse.egit.ui.FetchGerritChange"
4282                label="%FetchFromGerritCommand.label"
4283                style="push">
4284             <visibleWhen
4285                   checkEnabled="false">
4286                <and>
4287                   <count
4288                         value="1">
4289                   </count>
4290                   <iterate>
4291                      <and>
4292                         <instanceof
4293                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4294                         </instanceof>
4295                         <test
4296                               property="GitRepository.canFetchFromGerrit">
4297                         </test>
4298                      </and>
4299                   </iterate>
4300                </and>
4301             </visibleWhen>
4302          </command>
4303          <dynamic
4304                   class="org.eclipse.egit.ui.internal.actions.PushMenu"
4305                   id="org.eclipse.egit.ui.repository.tree.popup.Push">
4306                         <visibleWhen
4307                   checkEnabled="false">
4308                <and>
4309                   <count
4310                         value="1">
4311                   </count>
4312                   <iterate
4313                         ifEmpty="false"
4314                         operator="and">
4315                      <instanceof
4316                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4317                      </instanceof>
4318                   </iterate>
4319                </and>
4320             </visibleWhen>
4321          </dynamic>
4322          <command
4323                commandId="org.eclipse.egit.ui.team.Pull"
4324                icon="icons/obj16/pull.png"
4325                label="%RepoViewPullMenu.label"
4326                style="push">
4327             <visibleWhen
4328                   checkEnabled="false">
4329                <and>
4330                   <count
4331                         value="+">
4332                   </count>
4333                   <iterate>
4334                      <and>
4335                         <instanceof
4336                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4337                         </instanceof>
4338                         <test
4339                               property="GitRepository.canMerge">
4340                         </test>
4341                      </and>
4342                   </iterate>
4343                </and>
4344             </visibleWhen>
4345          </command>
4346          <command
4347                commandId="org.eclipse.egit.ui.team.PullWithOptions"
4348                icon="icons/obj16/pull.png"
4349                label="%PullWithOptions.name"
4350                style="push">
4351             <visibleWhen
4352                   checkEnabled="false">
4353                <and>
4354                   <count
4355                         value="1">
4356                   </count>
4357                   <iterate>
4358                      <and>
4359                         <instanceof
4360                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4361                         </instanceof>
4362                         <test
4363                               property="GitRepository.canMerge">
4364                         </test>
4365                      </and>
4366                   </iterate>
4367                </and>
4368             </visibleWhen>
4369          </command>
4370          <menu
4371                label="%RemoteSubMenu.label">
4372             <command
4373                   commandId="org.eclipse.egit.ui.team.Push"
4374                   icon="icons/obj16/push.png"
4375                   label="%RepoViewPush.label"
4376                   style="push">
4377                <visibleWhen
4378                      checkEnabled="false">
4379                   <and>
4380                      <count
4381                            value="1">
4382                      </count>
4383                      <iterate>
4384                         <instanceof
4385                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4386                         </instanceof>
4387                      </iterate>
4388                   </and>
4389                </visibleWhen>
4390             </command>
4391             <command
4392                   commandId="org.eclipse.egit.ui.team.PushTags"
4393                   label="%PushTagsCommand.label"
4394                   style="push">
4395                <visibleWhen
4396                      checkEnabled="false">
4397                   <and>
4398                      <count
4399                            value="1">
4400                      </count>
4401                      <iterate>
4402                         <instanceof
4403                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4404                         </instanceof>
4405                      </iterate>
4406                   </and>
4407                </visibleWhen>
4408             </command>
4409             <command
4410                   commandId="org.eclipse.egit.ui.team.Fetch"
4411                   icon="icons/obj16/fetch.png"
4412                   label="%RepoViewFetch.label"
4413                   style="push">
4414                <visibleWhen
4415                      checkEnabled="false">
4416                   <and>
4417                      <count
4418                            value="1">
4419                      </count>
4420                      <iterate
4421                            ifEmpty="false"
4422                            operator="and">
4423                         <instanceof
4424                               value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4425                         </instanceof>
4426                      </iterate>
4427                   </and>
4428                </visibleWhen>
4429             </command>
4430          </menu>
4431       </menuContribution>
4432       <menuContribution
4433             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-2">
4434          <command
4435                commandId="org.eclipse.egit.ui.team.Merge"
4436                icon="icons/obj16/merge.png"
4437                label="%RepoViewMerge.label"
4438                style="push">
4439             <visibleWhen
4440                   checkEnabled="false">
4441                <and>
4442                   <count
4443                         value="1">
4444                   </count>
4445                   <iterate>
4446                      <and>
4447                         <test
4448                               property="GitRepository.canMerge">
4449                         </test>
4450                         <or>
4451                            <instanceof
4452                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4453                            </instanceof>
4454                            <and>
4455                               <instanceof
4456                                     value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4457                               </instanceof>
4458                               <test
4459                                     property="GitRepository.isRefCheckedOut">
4460                               </test>
4461                            </and>
4462                         </or>
4463                      </and>
4464                   </iterate>
4465                </and>
4466             </visibleWhen>
4467          </command>
4468          <command
4469                commandId="org.eclipse.egit.ui.team.Rebase"
4470                label="%RebaseCommand.label2"
4471                style="push">
4472             <visibleWhen
4473                   checkEnabled="false">
4474                <or>
4475                   <and>
4476                      <count
4477                            value="1">
4478                      </count>
4479                      <iterate>
4480                         <and>
4481                            <test
4482                                  property="GitRepository.canMerge">
4483                            </test>
4484                            <instanceof
4485                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4486                            </instanceof>
4487                         </and>
4488                      </iterate>
4489                   </and>
4490                   <and>
4491                      <count
4492                            value="1">
4493                      </count>
4494                      <iterate>
4495                         <and>
4496                            <test
4497                                  property="GitRepository.canMerge">
4498                            </test>
4499                            <test
4500                                  property="GitRepository.isRefCheckedOut">
4501                            </test>
4502                            <instanceof
4503                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4504                            </instanceof>
4505                            <test
4506                                  property="GitRepository.isLocalBranch">
4507                            </test>
4508                         </and>
4509                      </iterate>
4510                   </and>
4511                </or>
4512             </visibleWhen>
4513          </command>
4514          <menu
4515                icon="icons/obj16/rebase.png"
4516                label="%RebaseMenu.label">
4517             <command
4518                   commandId="org.eclipse.egit.ui.AbortRebase"
4519                   label="%AbortCommand.label"
4520                   style="push">
4521                <visibleWhen checkEnabled="true" />
4522             </command>
4523             <command
4524                   commandId="org.eclipse.egit.ui.ContinueRebase"
4525                   label="%ContinueCommand.label"
4526                   style="push">
4527                <visibleWhen checkEnabled="true" />
4528             </command>
4529             <command
4530                   commandId="org.eclipse.egit.ui.SkipRebase"
4531                   label="%SkipCommand.label"
4532                   style="push">
4533                <visibleWhen checkEnabled="true" />
4534             </command>
4535          </menu>
4536          <command
4537                commandId="org.eclipse.egit.ui.team.Reset"
4538                icon="icons/obj16/reset.png"
4539                label="%RepoViewReset.label"
4540                style="push">
4541             <visibleWhen
4542                   checkEnabled="false">
4543                <and>
4544                   <count
4545                         value="1">
4546                   </count>
4547                   <iterate>
4548                      <and>
4549                         <test
4550                               property="GitRepository.canResetHead">
4551                         </test>
4552                         <or>
4553                            <instanceof
4554                                  value="org.eclipse.egit.ui.internal.repository.tree.RefNode">
4555                            </instanceof>
4556                            <instanceof
4557                                  value="org.eclipse.egit.ui.internal.repository.tree.TagNode">
4558                            </instanceof>
4559                            <instanceof
4560                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4561                            </instanceof>
4562                         </or>
4563                      </and>
4564                   </iterate>
4565                </and>
4566             </visibleWhen>
4567          </command>
4568       </menuContribution>
4569       <menuContribution
4570             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-3">
4571          <command
4572                commandId="org.eclipse.egit.ui.team.AddToIndex"
4573                icon="/icons/obj16/add.png"
4574                label="%RepoViewAddToIndex.label"
4575                style="push">
4576             <visibleWhen
4577                   checkEnabled="false">
4578                <and>
4579                   <count
4580                         value="+">
4581                   </count>
4582                   <iterate
4583                         ifEmpty="false"
4584                         operator="and">
4585                      <or>
4586                         <instanceof
4587                               value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
4588                         </instanceof>
4589                         <instanceof
4590                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
4591                         </instanceof>
4592                         <instanceof
4593                               value="org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode">
4594                         </instanceof>
4595                      </or>
4596                   </iterate>
4597                </and>
4598             </visibleWhen>
4599          </command>
4600          <command
4601                commandId="org.eclipse.ui.edit.delete"
4602                label="%RepoViewDeleteFile.label"
4603                style="push">
4604             <visibleWhen
4605                   checkEnabled="false">
4606                <and>
4607                   <count
4608                         value="+">
4609                   </count>
4610                   <iterate
4611                         ifEmpty="false"
4612                         operator="and">
4613                      <or>
4614                         <instanceof
4615                               value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
4616                         </instanceof>
4617                         <instanceof
4618                               value="org.eclipse.egit.ui.internal.repository.tree.FolderNode">
4619                         </instanceof>
4620                      </or>
4621                   </iterate>
4622                </and>
4623             </visibleWhen>
4624          </command>
4625          <command
4626                commandId="org.eclipse.egit.ui.RepositoriesViewImportProjects"
4627                icon="icons/obj16/import_prj.png"
4628                label="%RepoViewImportProjects.label"
4629                style="push">
4630             <visibleWhen checkEnabled="true" />
4631          </command>
4632       </menuContribution>
4633       <menuContribution
4634             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.open">
4635          <command
4636                commandId="org.eclipse.egit.ui.RepositoriesViewOpenInEditor"
4637                label="%RepoViewOpenInEditor.label"
4638                style="push">
4639             <visibleWhen checkEnabled="true" />
4640          </command>
4641          <command
4642                commandId="org.eclipse.egit.ui.RepositoriesViewOpen"
4643                label="%OpenInCommitViewerCommand.name"
4644                style="push">
4645             <visibleWhen checkEnabled="false">
4646                <and>
4647                   <count value="1" />
4648                   <iterate>
4649                      <instanceof value="org.eclipse.egit.ui.internal.repository.tree.StashedCommitNode" />
4650                   </iterate>
4651                </and>
4652             </visibleWhen>
4653          </command>
4654       </menuContribution>
4655       <menuContribution
4656             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-4">
4657          <command
4658               commandId="org.eclipse.egit.ui.team.clean"
4659               label="%CleanCommand.label"
4660               style="push">
4661             <visibleWhen checkEnabled="true" />
4662          </command>
4663          <!-- Use newer flat trash icon when running on Eclipse Photon or newer -->
4664          <command
4665                commandId="org.eclipse.egit.ui.team.GarbageCollect"
4666                label="%GarbageCollectCommand.label"
4667                icon="icons/elcl16/trash_flat.png"
4668                style="push">
4669             <visibleWhen
4670                   checkEnabled="false">
4671                <and>
4672                   <test property="org.eclipse.egit.ui.BundleProperty.isBundleInstalled" args="org.eclipse.ui,3.109.100" />
4673                   <count
4674                         value="+">
4675                   </count>
4676                   <iterate>
4677                      <instanceof
4678                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4679                      </instanceof>
4680                   </iterate>
4681                </and>
4682             </visibleWhen>
4683          </command>
4684          <!-- Use older trash icon when running on Eclipse Oxygen or older -->
4685          <command
4686                commandId="org.eclipse.egit.ui.team.GarbageCollect"
4687                label="%GarbageCollectCommand.label"
4688                icon="icons/elcl16/trash.png"
4689                style="push">
4690             <visibleWhen
4691                   checkEnabled="false">
4692                <and>
4693                   <test property="org.eclipse.egit.ui.BundleProperty.isBundleInstalled" args="org.eclipse.ui,3.109.100" value="false" />
4694                   <count
4695                         value="+">
4696                   </count>
4697                   <iterate>
4698                      <instanceof
4699                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4700                      </instanceof>
4701                   </iterate>
4702                </and>
4703             </visibleWhen>
4704          </command>
4705          <command
4706                commandId="org.eclipse.egit.ui.team.InstallLfsLocal"
4707                label="%InstallLfsLocalCommand.label"
4708                style="push">
4709             <visibleWhen checkEnabled="true" />
4710          </command>
4711          <command
4712                commandId="org.eclipse.egit.ui.RepositoriesViewRemove"
4713                label="%RepoViewRemove.label"
4714                style="push">
4715             <visibleWhen checkEnabled="true" />
4716          </command>
4717          <command
4718                commandId="org.eclipse.egit.ui.RepositoriesViewDelete"
4719                label="%RepoViewDeleteRepository.label"
4720                style="push">
4721             <visibleWhen checkEnabled="true" />
4722          </command>
4723       </menuContribution>
4724       <menuContribution
4725             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-5">
4726          <command
4727                commandId="org.eclipse.egit.ui.team.submodule.add"
4728                label="%SubmoduleAddCommand.label"
4729                style="push">
4730             <visibleWhen
4731                   checkEnabled="false">
4732                <and>
4733                   <count
4734                         value="1">
4735                   </count>
4736                   <iterate>
4737                      <or>
4738                         <and>
4739                            <instanceof
4740                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4741                            </instanceof>
4742                            <not>
4743                               <test
4744                                     property="GitRepository.isSubmodule">
4745                               </test>
4746                            </not>
4747                            <not>
4748                               <test
4749                                     property="GitRepository.isBare">
4750                               </test>
4751                            </not>
4752                         </and>
4753                         <instanceof
4754                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
4755                         </instanceof>
4756                      </or>
4757                   </iterate>
4758                </and>
4759             </visibleWhen>
4760          </command>
4761          <command
4762                commandId="org.eclipse.egit.ui.team.submodule.sync"
4763                label="%SubmoduleSyncCommand.label"
4764                style="push">
4765             <visibleWhen
4766                   checkEnabled="false">
4767                <and>
4768                   <count
4769                         value="+">
4770                   </count>
4771                   <iterate>
4772                      <or>
4773                         <and>
4774                            <instanceof
4775                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4776                            </instanceof>
4777                            <test
4778                                  property="GitRepository.isSubmodule">
4779                            </test>
4780                         </and>
4781                         <instanceof
4782                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
4783                         </instanceof>
4784                      </or>
4785                   </iterate>
4786                </and>
4787             </visibleWhen>
4788          </command>
4789          <command
4790                commandId="org.eclipse.egit.ui.team.submodule.update"
4791                label="%SubmoduleUpdateCommand.label"
4792                style="push">
4793             <visibleWhen
4794                   checkEnabled="false">
4795                <and>
4796                   <count
4797                         value="+">
4798                   </count>
4799                   <iterate>
4800                      <or>
4801                         <and>
4802                            <instanceof
4803                                  value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4804                            </instanceof>
4805                            <test
4806                                  property="GitRepository.isSubmodule">
4807                            </test>
4808                         </and>
4809                         <instanceof
4810                               value="org.eclipse.egit.ui.internal.repository.tree.SubmodulesNode">
4811                         </instanceof>
4812                      </or>
4813                   </iterate>
4814                </and>
4815             </visibleWhen>
4816          </command>
4817       </menuContribution>
4818       <menuContribution
4819             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=repo-6">
4820          <command
4821                commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath"
4822                label="%RepoViewCopyPath.label"
4823                style="push">
4824             <visibleWhen
4825                   checkEnabled="false">
4826                   <reference
4827                         definitionId="org.eclipse.egit.ui.repositoryTreePathNode">
4828                   </reference>
4829             </visibleWhen>
4830          </command>
4831          <command
4832                commandId="org.eclipse.egit.ui.RepositoriesViewPaste"
4833                label="%RepoViewPastePath.label"
4834                style="push">
4835          </command>
4836       </menuContribution>
4837       <menuContribution
4838             locationURI="popup:org.eclipse.egit.ui.RepositoriesView?after=group.properties">
4839          <command
4840                commandId="org.eclipse.ui.file.properties"
4841                style="push">
4842             <visibleWhen
4843                   checkEnabled="false">
4844                <and>
4845                   <count
4846                         value="1">
4847                   </count>
4848                   <iterate>
4849                      <instanceof
4850                            value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode">
4851                      </instanceof>
4852                   </iterate>
4853                </and>
4854             </visibleWhen>
4855          </command>
4856       </menuContribution>
4857       <menuContribution
4858             locationURI="toolbar:org.eclipse.egit.ui.RepositoriesView">
4859          <separator
4860                name="org.eclipse.egit.ui.repositoryActions"
4861                visible="true">
4862          </separator>
4863          <command
4864                commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
4865                style="push"
4866                tooltip="%RepoViewAddRepository.tooltip">
4867          </command>
4868          <command
4869                commandId="org.eclipse.egit.ui.RepositoriesViewClone"
4870                style="push"
4871                tooltip="%RepoViewCloneRepository.tooltip">
4872          </command>
4873          <command
4874                commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
4875                style="push"
4876                tooltip="%RepoViewCreateRepository.tooltip">
4877          </command>
4878          <separator
4879                name="org.eclipse.egit.ui.viewActions"
4880                visible="true">
4881          </separator>
4882          <command
4883                commandId="org.eclipse.ui.file.refresh"
4884                icon="icons/obj16/refresh.png"
4885                disabledIcon="icons/obj16/refresh.png"
4886                style="push">
4887          </command>
4888          <command
4889                commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
4890                style="toggle">
4891          </command>
4892          <separator
4893                name="org.eclipse.egit.ui.separator1"
4894                visible="true">
4895          </separator>
4896          <command
4897                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
4898                helpContextId="Hierarchical Branch Representation"
4899                style="toggle"
4900                tooltip="%RepoViewHierarchicalBranchRepresenation.tooltip">
4901          </command>
4902          <command
4903                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
4904                style="toggle"
4905                tooltip="%RepoViewBranchCommit.tooltip">
4906          </command>
4907       </menuContribution>
4908       <menuContribution
4909             locationURI="menu:org.eclipse.egit.ui.RepositoriesView">
4910          <command
4911                commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
4912                label="%RepoAddRepositoryViewMenu.label"
4913                style="push">
4914          </command>
4915          <command
4916                commandId="org.eclipse.egit.ui.RepositoriesViewClone"
4917                label="%RepoCloneRepositoryViewMenu.label"
4918                style="push">
4919          </command>
4920          <command
4921                commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
4922                label="%RepoCreateRepositoryViewMenu.label"
4923                style="push">
4924          </command>
4925          <separator
4926                name="org.eclipse.egit.ui.viewActions"
4927                visible="true">
4928          </separator>
4929          <command
4930                commandId="org.eclipse.ui.file.refresh"
4931                icon="icons/obj16/refresh.png"
4932                style="push">
4933          </command>
4934          <command
4935                commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
4936                label="%RepoViewLinkWithSelectionMenu.label"
4937                style="toggle">
4938          </command>
4939          <separator
4940                name="org.eclipse.egit.ui.separator2"
4941                visible="true">
4942          </separator>
4943          <command
4944                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
4945                label="%HierarchyLayout.label"
4946                style="toggle">
4947          </command>
4948          <command
4949                commandId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
4950                label="%BranchCommit.label"
4951                style="toggle">
4952          </command>
4953       </menuContribution>
4954       <menuContribution
4955             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
4956          <menu
4957                id="team.main"
4958                label="%TeamMenu.label">
4959             <separator
4960                   name="group1"
4961                   visible="true">
4962             </separator>
4963             <command
4964                   commandId="org.eclipse.egit.ui.team.Commit"
4965                   label="%CommitAction_label"
4966                   style="push">
4967                <visibleWhen
4968                      checkEnabled="false">
4969                   <reference
4970                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
4971                   </reference>
4972                </visibleWhen>
4973             </command>
4974             <menu
4975                   id="egit.menu.stashes"
4976                   label="%StashesMenu.label">
4977                <dynamic
4978                      class="org.eclipse.egit.ui.internal.actions.StashesMenu"
4979                      id="org.eclipse.egit.ui.stashedChanges">
4980                </dynamic>
4981                <visibleWhen
4982                      checkEnabled="false">
4983                   <test
4984                         property="GitSelection.projectsSingleRepository">
4985                   </test>
4986                </visibleWhen>
4987             </menu>
4988             <command
4989                   commandId="org.eclipse.egit.ui.team.SimplePush"
4990                   label="%PushToUpstreamAction.label"
4991                   style="push">
4992                <visibleWhen
4993                      checkEnabled="false">
4994                   <test
4995                         property="GitSelection.projectsSingleRepository">
4996                   </test>
4997                </visibleWhen>
4998             </command>
4999             <command
5000                   commandId="org.eclipse.egit.ui.team.SimpleFetch"
5001                   label="%FetchFromUpstreamAction.label"
5002                   mnemonic="f"
5003                   style="push">
5004                <visibleWhen
5005                      checkEnabled="false">
5006                   <test
5007                         property="GitSelection.projectsSingleRepository">
5008                   </test>
5009                </visibleWhen>
5010             </command>
5011             <dynamic
5012                   class="org.eclipse.egit.ui.internal.actions.PushMenu"
5013                   id="org.eclipse.egit.ui.team.popup.Push">
5014                <visibleWhen
5015                      checkEnabled="false">
5016                   <test
5017                         property="GitSelection.projectsSingleRepository">
5018                   </test>
5019                </visibleWhen>
5020             </dynamic>
5021             <command
5022                   commandId="org.eclipse.egit.ui.team.Pull"
5023                   label="%PullIntoCurrentBranchMenuLabel"
5024                   style="push">
5025                <visibleWhen
5026                      checkEnabled="false">
5027                   <test
5028                         property="GitSelection.projectsWithRepositories">
5029                   </test>
5030                </visibleWhen>
5031             </command>
5032             <command
5033                   commandId="org.eclipse.egit.ui.team.PullWithOptions"
5034                   label="%PullWithOptions.name"
5035                   style="push">
5036                <visibleWhen
5037                      checkEnabled="false">
5038                   <test
5039                         property="GitSelection.projectsSingleRepository">
5040                   </test>
5041                </visibleWhen>
5042             </command>
5043             <separator
5044                   name="org.eclipse.egit.ui.remoteSeparator"
5045                   visible="true">
5046             </separator>
5047             <menu
5048                   id="egit.menu.remote"
5049                   label="%RemoteSubMenu.label">
5050                <command
5051                      commandId="org.eclipse.egit.ui.team.Push"
5052                      label="%PushAction_label"
5053                      style="push">
5054                </command>
5055                <command
5056                      commandId="org.eclipse.egit.ui.team.PushTags"
5057                      label="%PushTagsCommand.label"
5058                      style="push">
5059                </command>
5060                <command
5061                      commandId="org.eclipse.egit.ui.team.Fetch"
5062                      label="%FetchAction_label"
5063                      style="push">
5064                </command>
5065                <command
5066                      commandId="org.eclipse.egit.ui.PushHeadToGerrit"
5067                      label="%PushToGerritMenu.label"
5068                      style="push">
5069                   <visibleWhen
5070                         checkEnabled="false">
5071                      <test
5072                            property="GitSelection.projectsSingleRepository"
5073                            args="canPushToGerrit">
5074                      </test>
5075                   </visibleWhen>
5076                </command>
5077                <command
5078                      commandId="org.eclipse.egit.ui.FetchGerritChange"
5079                      label="%FetchFromGerritCommand.label"
5080                      style="push">
5081                   <visibleWhen
5082                         checkEnabled="false">
5083                      <test
5084                            property="GitSelection.projectsSingleRepository"
5085                            args="canFetchFromGerrit">
5086                      </test>
5087                   </visibleWhen>
5088                </command>
5089                <separator
5090                      name="org.eclipse.egit.ui.remote.group1"
5091                      visible="true">
5092                </separator>
5093                <command
5094                      commandId="org.eclipse.egit.ui.ConfigureUpstreamPush"
5095                      label="%ConfigurePushToUpstreamCommand.label"
5096                      style="push">
5097                </command>
5098                <command
5099                      commandId="org.eclipse.egit.ui.ConfigureUpstreamFetch"
5100                      label="%ConfigureFetchFromUpstreamCommand.label"
5101                      style="push">
5102                </command>
5103                <visibleWhen
5104                      checkEnabled="false">
5105                   <test
5106                         property="GitSelection.projectsSingleRepository">
5107                   </test>
5108                </visibleWhen>
5109             </menu>
5110             <separator
5111                   name="org.eclipse.egit.ui.branchSeparator">
5112             </separator>
5113             <menu
5114                   id="egit.menu.switch"
5115                   label="%SwitchToMenu.label"
5116                   icon="icons/obj16/branches_obj.png">
5117                <dynamic
5118                      class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
5119                      id="org.eclipse.egit.ui.switchToMenu">
5120                </dynamic>
5121                <visibleWhen
5122                      checkEnabled="false">
5123                   <test
5124                         property="GitSelection.projectsSingleRepository">
5125                   </test>
5126                </visibleWhen>
5127             </menu>
5128             <separator
5129                   name="org.eclipse.egit.ui.AdvancedSeparator">
5130             </separator>
5131             <menu
5132                   id="egit.menu.repo"
5133                   label="%RepositorySubMenu.label">
5134                <visibleWhen
5135                      checkEnabled="false">
5136                      <reference
5137                            definitionId="org.eclipse.egit.ui.fileOrFolderInRepository">
5138                      </reference>
5139                </visibleWhen>
5140                <separator
5141                      name="group1"
5142                      visible="true">
5143                </separator>
5144                <command
5145                      commandId="org.eclipse.egit.ui.team.SimplePush"
5146                      label="%PushToUpstreamAction.label"
5147                      style="push">
5148                </command>
5149                <command
5150                      commandId="org.eclipse.egit.ui.team.SimpleFetch"
5151                      label="%FetchFromUpstreamAction.label"
5152                      style="push">
5153                </command>
5154                <dynamic
5155                      class="org.eclipse.egit.ui.internal.actions.PushMenu"
5156                      id="org.eclipse.egit.ui.team.popup.Push">
5157                </dynamic>
5158                <command
5159                      commandId="org.eclipse.egit.ui.team.Pull"
5160                      label="%RepoViewPullMenu.label"
5161                      style="push">
5162                </command>
5163                <command
5164                      commandId="org.eclipse.egit.ui.PushHeadToGerrit"
5165                      label="%PushToGerritMenu.label"
5166                      style="push">
5167                   <visibleWhen
5168                         checkEnabled="false">
5169                      <reference
5170                            definitionId="org.eclipse.egit.ui.fileOrFolderPushToGerrit">
5171                      </reference>
5172                   </visibleWhen>
5173                </command>
5174                <command
5175                      commandId="org.eclipse.egit.ui.FetchGerritChange"
5176                      label="%FetchFromGerritCommand.label"
5177                      style="push">
5178                   <visibleWhen
5179                         checkEnabled="false">
5180                      <reference
5181                            definitionId="org.eclipse.egit.ui.fileOrFolderFetchFromGerrit">
5182                      </reference>
5183                   </visibleWhen>
5184                </command>
5185                <separator
5186                      name="group2"
5187                      visible="true">
5188                </separator>
5189                <menu
5190                      id="egit.menu.repo.switchto"
5191                      label="%SwitchToMenu.label"
5192                      icon="icons/obj16/branches_obj.png">
5193                   <dynamic
5194                         class="org.eclipse.egit.ui.internal.actions.SwitchToMenu"
5195                         id="org.eclipse.egit.ui.switchToMenu">
5196                   </dynamic>
5197                </menu>
5198             </menu>
5199             <menu
5200                   id="egit.menu.advanced"
5201                   label="%AdvancedMenu.label">
5202                <command
5203                      commandId="org.eclipse.egit.ui.team.RenameBranch"
5204                      label="%RenameBranchMenu.label"
5205                      style="push">
5206                   <visibleWhen
5207                         checkEnabled="false">
5208                      <test
5209                            property="GitSelection.projectsSingleRepository">
5210                      </test>
5211                   </visibleWhen>
5212                </command>
5213                <command
5214                      commandId="org.eclipse.egit.ui.team.DeleteBranch"
5215                      label="%DeleteBranchMenu.label"
5216                      style="push">
5217                   <visibleWhen
5218                         checkEnabled="false">
5219                      <test
5220                            property="GitSelection.projectsSingleRepository">
5221                      </test>
5222                   </visibleWhen>
5223                </command>
5224                <separator
5225                   name="org.eclipse.egit.ui.SynchronizeWithSeparator"
5226                   visible="true" />
5227                <menu
5228                   id="egit.menu.synchronize"
5229                   label="%SynchronizeWith_label"
5230                   icon="$nl$/icons/obj16/synchronize.png">
5231                   <dynamic
5232                      class="org.eclipse.egit.ui.internal.actions.SynchronizeWithMenu"
5233                      id="org.eclipse.egit.ui.synchronize">
5234                   </dynamic>
5235                   <visibleWhen checkEnabled="false">
5236                   <and>
5237                      <count value="1" />
5238                      <iterate>
5239                         <and>
5240                            <adapt type="org.eclipse.core.resources.IResource">
5241                               <and>
5242                                  <test property="GitResource.isShared" />
5243                                  <test property="GitResource.isContainer" />
5244                               </and>
5245                            </adapt>
5246                         </and>
5247                      </iterate>
5248                   </and>
5249                </visibleWhen>
5250                </menu>
5251                <separator
5252                      name="org.eclipse.egit.ui.separator1"
5253                      visible="true">
5254                </separator>
5255                <command
5256                      commandId="org.eclipse.egit.ui.team.Tag"
5257                      label="%TagAction_label"
5258                      style="push">
5259                   <visibleWhen
5260                         checkEnabled="false">
5261                      <test
5262                            property="GitSelection.projectsSingleRepository">
5263                      </test>
5264                   </visibleWhen>
5265                </command>
5266                <separator
5267                      name="org.eclipse.egit.ui.separator2"
5268                      visible="true">
5269                </separator>
5270                <command
5271                      commandId="org.eclipse.egit.ui.team.clean"
5272                      label="%CleanCommand.label"
5273                      style="push">
5274                   <visibleWhen checkEnabled="false">
5275                      <test property="GitSelection.projectsSingleRepository" />
5276                   </visibleWhen>
5277                </command>
5278                <separator
5279                      name="org.eclipse.egit.ui.TeamAdvancedFileSeparator"
5280                      visible="true">
5281                </separator>
5282                <command
5283                      commandId="org.eclipse.egit.ui.team.AssumeUnchanged"
5284                      label="%AssumeUnchangedAction_label"
5285                      style="push">
5286                   <visibleWhen
5287                         checkEnabled="false">
5288                      <reference
5289                            definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5290                      </reference>
5291                   </visibleWhen>
5292                </command>
5293                <command
5294                      commandId="org.eclipse.egit.ui.team.NoAssumeUnchanged"
5295                      label="%NoAssumeUnchangedAction_label"
5296                      style="push">
5297                   <visibleWhen
5298                         checkEnabled="false">
5299                      <reference
5300                            definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5301                      </reference>
5302                   </visibleWhen>
5303                </command>
5304                <command
5305                      commandId="org.eclipse.egit.ui.team.Untrack"
5306                      icon="$nl$/icons/obj16/untrack.png"
5307                      label="%UntrackAction_label"
5308                      style="push">
5309                   <visibleWhen
5310                         checkEnabled="false">
5311                      <reference
5312                            definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5313                      </reference>
5314                   </visibleWhen>
5315                </command>
5316             </menu>
5317             <separator
5318                   name="group2"
5319                   visible="true">
5320             </separator>
5321             <separator
5322                   name="group3"
5323                   visible="true">
5324             </separator>
5325             <separator
5326                   name="group4"
5327                   visible="true">
5328             </separator>
5329             <command
5330                   commandId="org.eclipse.egit.ui.team.Merge"
5331                   label="%MergeAction_label"
5332                   style="push">
5333                <visibleWhen
5334                      checkEnabled="false">
5335                   <test
5336                         property="GitSelection.projectsSingleRepository">
5337                   </test>
5338                </visibleWhen>
5339             </command>
5340             <separator
5341                   name="group5"
5342                   visible="true">
5343             </separator>
5344             <command
5345                   commandId="org.eclipse.egit.ui.team.Rebase" style="push"
5346                   label="%RebaseWithDialog_label">
5347                <visibleWhen checkEnabled="false">
5348                   <test
5349                         property="GitSelection.projectsSingleRepository"
5350                         args="isSafe">
5351                   </test>
5352                </visibleWhen>
5353             </command>
5354             <menu
5355                   icon="icons/obj16/rebase.png"
5356                   id="egit.menu.rebase"
5357                   label="%RebaseMenu.label">
5358                <command
5359                      commandId="org.eclipse.egit.ui.AbortRebase"
5360                      style="push">
5361                   <visibleWhen>
5362                      <or>
5363                         <with variable="activeMenuSelection">
5364                            <count value="1" />
5365                            <iterate>
5366                               <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
5367                               <test property="GitRepository.canAbortRebase" />
5368                            </iterate>
5369                         </with>
5370                         <test
5371                               property="GitSelection.projectsSingleRepository"
5372                               args="canAbortRebase">
5373                         </test>
5374                      </or>
5375                   </visibleWhen>
5376                </command>
5377                <command
5378                      commandId="org.eclipse.egit.ui.ContinueRebase"
5379                      style="push">
5380                   <visibleWhen>
5381                      <or>
5382                         <with variable="activeMenuSelection">
5383                            <count value="1" />
5384                            <iterate>
5385                               <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
5386                               <test property="GitRepository.canContinueRebase" />
5387                            </iterate>
5388                         </with>
5389                         <test
5390                               property="GitSelection.projectsSingleRepository"
5391                               args="canContinueRebase">
5392                         </test>
5393                      </or>
5394                   </visibleWhen>
5395                </command>
5396                <command
5397                      commandId="org.eclipse.egit.ui.SkipRebase"
5398                      style="push">
5399                   <visibleWhen>
5400                      <or>
5401                         <with variable="activeMenuSelection">
5402                            <count value="1" />
5403                            <iterate>
5404                               <instanceof value="org.eclipse.egit.ui.internal.repository.tree.RepositoryNode" />
5405                               <test property="GitRepository.canAbortRebase" />
5406                            </iterate>
5407                         </with>
5408                         <test
5409                               property="GitSelection.projectsSingleRepository"
5410                               args="canAbortRebase">
5411                         </test>
5412                      </or>
5413                   </visibleWhen>
5414                </command>
5415             </menu>
5416             <command
5417                   commandId="org.eclipse.egit.ui.team.Reset"
5418                   label="%ResetAction_label"
5419                   style="push">
5420                <visibleWhen
5421                      checkEnabled="false">
5422                   <test
5423                         property="GitSelection.projectsSingleRepository">
5424                   </test>
5425                </visibleWhen>
5426             </command>
5427             <separator
5428                   name="group6"
5429                   visible="true">
5430             </separator>
5431             <command
5432                   commandId="org.eclipse.egit.ui.team.CreatePatch"
5433                   label="%CreatePatchAction.label"
5434                   style="push">
5435                <visibleWhen
5436                      checkEnabled="false">
5437                   <reference
5438                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5439                   </reference>
5440                </visibleWhen>
5441             </command>
5442             <separator
5443                   name="applyPatchGroup"
5444                   visible="false">
5445             </separator>
5446             <separator
5447                   name="group7"
5448                   visible="true">
5449             </separator>
5450             <separator
5451                   name="group8"
5452                   visible="true">
5453             </separator>
5454             <separator
5455                   name="group9"
5456                   visible="true">
5457             </separator>
5458             <command
5459                   commandId="org.eclipse.egit.ui.team.ShowHistory"
5460                   label="%ShowResourceInHistoryAction_label"
5461                   style="push">
5462                <visibleWhen
5463                      checkEnabled="false">
5464                   <reference
5465                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5466                   </reference>
5467                </visibleWhen>
5468             </command>
5469             <command
5470                   commandId="org.eclipse.egit.ui.team.ShowRepositoriesView"
5471                   label="%ShowRepositoryAction_label"
5472                   style="push">
5473                <visibleWhen
5474                      checkEnabled="false">
5475                   <reference
5476                         definitionId="org.eclipse.egit.ui.resourcesSingleRepository">
5477                   </reference>
5478                </visibleWhen>
5479             </command>
5480             <separator
5481                   name="showAnnotationsGroup"
5482                   visible="false">
5483             </separator>
5484             <command
5485                   commandId="org.eclipse.egit.ui.team.ShowBlame"
5486                   label="%ShowBlameAction_label"
5487                   icon="icons/etool16/annotate.png"
5488                   style="push">
5489                <visibleWhen checkEnabled="true" />
5490             </command>
5491             <separator
5492                   name="group10"
5493                   visible="true">
5494             </separator>
5495             <separator
5496                   name="targetGroup"
5497                   visible="true">
5498             </separator>
5499             <separator
5500                   name="projectGroup"
5501                   visible="true">
5502             </separator>
5503             <separator
5504                   name="group11"
5505                   visible="true">
5506             </separator>
5507             <command
5508                   commandId="org.eclipse.egit.ui.team.Disconnect"
5509                   label="%DisconnectAction_label"
5510                   style="push">
5511                <visibleWhen
5512                      checkEnabled="false">
5513                   <test
5514                         property="GitSelection.projectsWithRepositories">
5515                   </test>
5516                </visibleWhen>
5517             </command>
5518             <visibleWhen>
5519                <with variable="activeMenu">
5520                   <not>
5521                      <iterate operator="or">
5522                         <or>
5523                            <equals value="#AbstractTextEditorRulerContext" />
5524                            <equals value="#OverviewRulerContext" />
5525                         </or>
5526                      </iterate>
5527                   </not>
5528                </with>
5529             </visibleWhen>
5530          </menu>
5531       </menuContribution>
5532       <menuContribution
5533          locationURI="popup:#AbstractTextEditorRulerContext?after=QuickDiff.Toggle">
5534          <command
5535             commandId="org.eclipse.egit.ui.team.ShowBlame"
5536             label="%ShowBlameAction_label"
5537             style="push">
5538             <visibleWhen
5539                checkEnabled="false">
5540                <with
5541                      variable="activeEditorInput">
5542                   <adapt
5543                      type="org.eclipse.core.resources.IFile">
5544                      <test
5545                         property="GitResource.isShared" />
5546                   </adapt>
5547                </with>
5548             </visibleWhen>
5549          </command>
5550       </menuContribution>
5551       <menuContribution
5552          locationURI="popup:#AbstractTextEditorRulerContext?after=rulers">
5553          <command
5554             commandId="org.eclipse.egit.ui.team.ShowBlame"
5555             label="%ShowBlameAction_label"
5556             style="push">
5557             <visibleWhen
5558                checkEnabled="false">
5559                <with
5560                      variable="activeEditorInput">
5561                   <adapt
5562                      type="org.eclipse.team.core.history.IFileRevision">
5563                      <instanceof
5564                            value="org.eclipse.egit.core.internal.storage.CommitFileRevision">
5565                      </instanceof>
5566                   </adapt>
5567                </with>
5568             </visibleWhen>
5569           </command>
5570       </menuContribution>
5571       <menuContribution
5572             allPopups="false"
5573             locationURI="popup:team.main?after=group8">
5574          <command
5575                commandId="org.eclipse.egit.ui.team.AddToIndex"
5576                label="%AddToIndexAction_label"
5577                style="push">
5578             <visibleWhen
5579                   checkEnabled="false">
5580                <test
5581                      property="org.eclipse.egit.ui.resources.ResourceState.hasUnstagedChanges">
5582                </test>
5583             </visibleWhen>
5584          </command>
5585          <command
5586                commandId="org.eclipse.egit.ui.team.RemoveFromIndex"
5587                label="%RemoveFromIndexAction_label"
5588                style="push">
5589             <visibleWhen
5590                   checkEnabled="false">
5591                <test
5592                      property="org.eclipse.egit.ui.resources.ResourceState.hasStagedChanges">
5593                </test>
5594             </visibleWhen>
5595          </command>
5596          <command
5597                commandId="org.eclipse.egit.ui.team.Ignore"
5598                label="%IgnoreAction_label"
5599                style="push">
5600             <visibleWhen
5601                   checkEnabled="false">
5602                <test
5603                      property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources">
5604                </test>
5605             </visibleWhen>
5606          </command>
5607       </menuContribution>
5608       <menuContribution
5609             allPopups="false"
5610             locationURI="popup:compareWithMenu?after=gitCompareWithGroup">
5611          <command
5612                commandId="org.eclipse.egit.ui.team.CompareWithHead"
5613                label="%CompareWithHeadAction_label"
5614                style="push">
5615             <visibleWhen checkEnabled="false">
5616                <and>
5617                   <test property="GitSelection.selectionSingleRepository" />
5618                   <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
5619                </and>
5620             </visibleWhen>
5621          </command>
5622          <command
5623                commandId="org.eclipse.egit.ui.team.CompareWithIndex"
5624                label="%CompareWithIndexAction_label"
5625                style="push">
5626             <visibleWhen checkEnabled="false">
5627                <and>
5628                   <test property="GitSelection.selectionSingleRepository" />
5629                   <test property="org.eclipse.egit.ui.resources.ResourceState.hasNotIgnoredResources" />
5630                </and>
5631             </visibleWhen>
5632          </command>
5633          <command
5634                commandId="org.eclipse.egit.ui.team.CompareIndexWithHead"
5635                label="%CompareIndexWithHeadAction_label"
5636                style="push">
5637             <visibleWhen checkEnabled="true" />
5638          </command>
5639          <command
5640                commandId="org.eclipse.egit.ui.team.CompareWithPrevious"
5641                label="%CompareWithPreviousAction.label"
5642                style="push">
5643             <visibleWhen checkEnabled="true" />
5644          </command>
5645       </menuContribution>
5646       <menuContribution
5647             allPopups="false"
5648             locationURI="popup:compareWithMenu?after=gitCompareWithGroup2">
5649          <command
5650                commandId="org.eclipse.egit.ui.team.CompareWithRef"
5651                label="%CompareWithBranchOrTagAction.label"
5652                style="push">
5653             <visibleWhen checkEnabled="false">
5654                <reference definitionId="org.eclipse.egit.ui.resourcesSingleRepository" />
5655             </visibleWhen>
5656          </command>
5657          <command
5658                commandId="org.eclipse.egit.ui.team.CompareWithCommit"
5659                label="%CompareWithCommitAction.label"
5660                style="push">
5661             <visibleWhen checkEnabled="false">
5662                <reference definitionId="org.eclipse.egit.ui.resourcesSingleRepository" />
5663             </visibleWhen>
5664          </command>
5665       </menuContribution>
5666       <menuContribution
5667             allPopups="false"
5668             locationURI="popup:replaceWithMenu?after=gitReplaceWithGroup">
5669          <command
5670                commandId="org.eclipse.egit.ui.team.ReplaceWithHead"
5671                label="%ReplaceWithHeadAction_label"
5672                style="push">
5673             <visibleWhen checkEnabled="true" />
5674          </command>
5675          <command
5676                commandId="org.eclipse.egit.ui.team.Discard"
5677                label="%DiscardChangesAction_label"
5678                style="push">
5679             <visibleWhen checkEnabled="true" />
5680          </command>
5681          <command
5682                commandId="org.eclipse.egit.ui.team.ReplaceWithPrevious"
5683                label="%ReplaceWithPreviousVersionAction.label"
5684                style="push">
5685             <visibleWhen checkEnabled="false">
5686                <and>
5687                   <count value="1" />
5688                   <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
5689                   <test property="org.eclipse.egit.ui.resources.ResourceState.hasTrackedResources" />
5690                </and>
5691             </visibleWhen>
5692          </command>
5693       </menuContribution>
5694       <menuContribution
5695             allPopups="false"
5696             locationURI="popup:replaceWithMenu?after=gitReplaceWithGroup2">
5697          <command
5698                commandId="org.eclipse.egit.ui.team.ReplaceWithRef"
5699                label="%ReplaceWithRefAction_label"
5700                style="push">
5701             <visibleWhen checkEnabled="false">
5702                <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
5703             </visibleWhen>
5704          </command>
5705          <command
5706                commandId="org.eclipse.egit.ui.team.ReplaceWithCommit"
5707                label="%ReplaceWithCommitAction_label"
5708                style="push">
5709             <visibleWhen checkEnabled="false">
5710                <test property="GitSelection.resourcesSingleRepository" args="isSafe" />
5711             </visibleWhen>
5712          </command>
5713       </menuContribution>
5714       <menuContribution
5715             allPopups="false"
5716             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
5717          <menu
5718                id="compareWithMenu"
5719                label="%CompareWithMenu.label">
5720             <separator
5721                   name="compareWithGroup">
5722             </separator>
5723             <separator
5724                   name="gitCompareWithGroup"
5725                   visible="true">
5726             </separator>
5727             <separator
5728                   name="gitCompareWithGroup2"
5729                   visible="true">
5730             </separator>
5731             <visibleWhen>
5732                <with variable="activeMenu">
5733                   <not>
5734                      <iterate operator="or">
5735                         <or>
5736                            <equals value="#AbstractTextEditorRulerContext" />
5737                            <equals value="#OverviewRulerContext" />
5738                         </or>
5739                      </iterate>
5740                   </not>
5741                </with>
5742             </visibleWhen>
5743          </menu>
5744       </menuContribution>
5745       <menuContribution
5746             allPopups="false"
5747             locationURI="popup:org.eclipse.ui.popup.any?after=additions">
5748          <menu
5749                id="replaceWithMenu"
5750                label="%ReplaceWithMenu.label">
5751             <separator
5752                   name="replaceWithGroup">
5753             </separator>
5754             <separator
5755                   name="gitReplaceWithGroup"
5756                   visible="true">
5757             </separator>
5758             <separator
5759                   name="gitReplaceWithGroup2"
5760                   visible="true">
5761             </separator>
5762             <visibleWhen>
5763                <with variable="activeMenu">
5764                   <not>
5765                      <iterate operator="or">
5766                         <or>
5767                            <equals value="#AbstractTextEditorRulerContext" />
5768                            <equals value="#OverviewRulerContext" />
5769                         </or>
5770                      </iterate>
5771                   </not>
5772                </with>
5773             </visibleWhen>
5774          </menu>
5775       </menuContribution>
5776    </extension>
5777    <extension
5778          name="%RepositoryCommandsLabel"
5779          point="org.eclipse.ui.commands">
5780       <command
5781             categoryId="org.eclipse.egit.ui.commandCategory"
5782             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.AddCommand"
5783             id="org.eclipse.egit.ui.RepositoriesViewAddRepository"
5784             name="%AddRepositoryCommand">
5785       </command>
5786       <command
5787             categoryId="org.eclipse.egit.ui.commandCategory"
5788             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.CloneCommand"
5789             id="org.eclipse.egit.ui.RepositoriesViewClone"
5790             name="%CloneRepositoryCommand">
5791       </command>
5792       <command
5793             categoryId="org.eclipse.egit.ui.commandCategory"
5794             id="org.eclipse.egit.ui.RepositoriesViewCopyPath"
5795             name="%CopyPathCommand">
5796       </command>
5797       <command
5798             categoryId="org.eclipse.egit.ui.commandCategory"
5799             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.PasteCommand"
5800             id="org.eclipse.egit.ui.RepositoriesViewPaste"
5801             name="%PastePathCommand">
5802       </command>
5803       <command
5804             categoryId="org.eclipse.egit.ui.commandCategory"
5805             id="org.eclipse.egit.ui.RepositoriesViewRemove"
5806             name="%RemoveRepositoryCommand">
5807       </command>
5808       <command
5809             categoryId="org.eclipse.egit.ui.commandCategory"
5810             id="org.eclipse.egit.ui.RepositoriesViewImportProjects"
5811             name="%ImportProjectsCommand"
5812             description="%ImportProjectsCommand_description"
5813             >
5814       </command>
5815       <command
5816             categoryId="org.eclipse.egit.ui.commandCategory"
5817             id="org.eclipse.egit.ui.ImportChangedProjectsCommandId"
5818             name="%ImportChangedProjectsCommand"
5819             description="%ImportProjectsCommand_description">
5820       </command>
5821       <command
5822             categoryId="org.eclipse.egit.ui.commandCategory"
5823             id="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
5824             name="%CreateBranchCommand">
5825       </command>
5826       <command
5827             categoryId="org.eclipse.egit.ui.commandCategory"
5828             id="org.eclipse.egit.ui.RepositoriesViewNewRemote"
5829             name="%NewRemoteCommand">
5830       </command>
5831       <command
5832             categoryId="org.eclipse.egit.ui.commandCategory"
5833             id="org.eclipse.egit.ui.RepositoriesViewConfigureFetch"
5834             name="%ConfigureFetchCommand">
5835       </command>
5836       <command
5837             categoryId="org.eclipse.egit.ui.commandCategory"
5838             id="org.eclipse.egit.ui.RepositoriesViewConfigurePush"
5839             name="%ConfigurePushCommand">
5840       </command>
5841       <command
5842             categoryId="org.eclipse.egit.ui.commandCategory"
5843             id="org.eclipse.egit.ui.RepositoriesViewRemoveRemote"
5844             name="%DeleteRemoteCommand">
5845       </command>
5846       <command
5847             categoryId="org.eclipse.egit.ui.commandCategory"
5848             id="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote"
5849             name="%ConfigureGerritRemoteCommand">
5850       </command>
5851       <command
5852             categoryId="org.eclipse.egit.ui.commandCategory"
5853             id="org.eclipse.egit.ui.RepositoriesViewChangeCredentials"
5854             name="%ChangeCredentialsCommand">
5855       </command>
5856       <command
5857             categoryId="org.eclipse.egit.ui.commandCategory"
5858             id="org.eclipse.egit.ui.RepositoriesViewClearCredentials"
5859             name="%ClearCredentialsCommand">
5860       </command>
5861       <command
5862             categoryId="org.eclipse.egit.ui.commandCategory"
5863             id="org.eclipse.egit.ui.RepositoriesViewOpenInEditor"
5864             name="%OpenInEditorCommand">
5865       </command>
5866       <command
5867             categoryId="org.eclipse.egit.ui.commandCategory"
5868             id="org.eclipse.egit.ui.RepositoriesViewOpen"
5869             name="%OpenCommand">
5870       </command>
5871       <command
5872             categoryId="org.eclipse.egit.ui.commandCategory"
5873             id="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
5874             name="%LinkWithSelectionCommand">
5875           <state
5876                 class="org.eclipse.ui.handlers.RegistryToggleState:false"
5877                 id="org.eclipse.ui.commands.toggleState">
5878           </state>
5879       </command>
5880       <command
5881             categoryId="org.eclipse.egit.ui.commandCategory"
5882             id="org.eclipse.egit.ui.CheckoutCommand"
5883             name="%CheckoutCommand">
5884       </command>
5885       <command
5886             categoryId="org.eclipse.egit.ui.commandCategory"
5887             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.CreateRepositoryCommand"
5888             id="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
5889             name="%RepoViewCreateRepositoryCommand.name">
5890       </command>
5891       <command
5892             categoryId="org.eclipse.egit.ui.commandCategory"
5893             id="org.eclipse.egit.ui.RepositoriesViewDelete"
5894             name="%DeleteRepositoryCommand.name">
5895       </command>
5896       <command
5897             categoryId="org.eclipse.egit.ui.commandCategory"
5898             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.ToggleBranchHierarchyCommand"
5899             id="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
5900             name="%ToggleLayoutCommand.name">
5901          <state
5902                class="org.eclipse.ui.handlers.RegistryToggleState:false"
5903                id="org.eclipse.ui.commands.toggleState">
5904          </state>
5905       </command>
5906        <command
5907             categoryId="org.eclipse.egit.ui.commandCategory"
5908             defaultHandler="org.eclipse.egit.ui.internal.repository.tree.command.ToggleBranchCommitCommand"
5909             id="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
5910             name="%ToggleBranchCommitCommand.name">
5911          <state
5912                class="org.eclipse.ui.handlers.RegistryToggleState:true"
5913                id="org.eclipse.ui.commands.toggleState">
5914          </state>
5915       </command>
5916       <command
5917             categoryId="org.eclipse.egit.ui.commandCategory"
5918             id="org.eclipse.egit.ui.AbortRebase"
5919             name="%AbortRebaseCommand.name">
5920       </command>
5921       <command
5922             categoryId="org.eclipse.egit.ui.commandCategory"
5923             id="org.eclipse.egit.ui.SkipRebase"
5924             name="%SkipRebaseCommand.name">
5925       </command>
5926       <command
5927             categoryId="org.eclipse.egit.ui.commandCategory"
5928             id="org.eclipse.egit.ui.ContinueRebase"
5929             name="%ContinueRebaseCommand.name">
5930       </command>
5931       <command
5932             categoryId="org.eclipse.egit.ui.commandCategory"
5933             id="org.eclipse.egit.ui.team.submodule.update"
5934             name="%SubmoduleUpdateCommand.name">
5935       </command>
5936       <command
5937             categoryId="org.eclipse.egit.ui.commandCategory"
5938             id="org.eclipse.egit.ui.team.submodule.sync"
5939             name="%SubmoduleSyncCommand.name">
5940       </command>
5941       <command
5942             categoryId="org.eclipse.egit.ui.commandCategory"
5943             id="org.eclipse.egit.ui.team.submodule.add"
5944             name="%SubmoduleAddCommand.name">
5945       </command>
5946       <command
5947             categoryId="org.eclipse.egit.ui.commandCategory"
5948             id="org.eclipse.egit.ui.team.clean"
5949             name="%CleanCommand.name">
5950       </command>
5951       <command
5952             categoryId="org.eclipse.egit.ui.commandCategory"
5953             id="org.eclipse.egit.ui.team.stash.create"
5954             defaultHandler="org.eclipse.egit.ui.internal.actions.StashCreateHandler"
5955             name="%StashCreateCommand.name">
5956       </command>
5957       <command
5958             categoryId="org.eclipse.egit.ui.commandCategory"
5959             id="org.eclipse.egit.ui.team.stash.apply"
5960             name="%StashApplyCommand.name">
5961       </command>
5962       <command
5963             categoryId="org.eclipse.egit.ui.commandCategory"
5964             id="org.eclipse.egit.ui.team.stash.drop"
5965             name="%StashDropCommand.name">
5966       </command>
5967       <command
5968             categoryId="org.eclipse.egit.ui.commandCategory"
5969             id="org.eclipse.egit.ui.RepositoriesViewConfigureBranch"
5970             name="%RepoViewConfigureBranchCommand.name">
5971       </command>
5972    </extension>
5973    <extension
5974          point="org.eclipse.ui.commandImages">
5975       <image
5976             commandId="org.eclipse.egit.ui.RepositoriesViewAddRepository"
5977             icon="icons/etool16/newlocation_wiz.png">
5978       </image>
5979       <image
5980             commandId="org.eclipse.egit.ui.RepositoriesViewClone"
5981             icon="icons/obj16/cloneGit.png">
5982       </image>
5983       <image
5984             commandId="org.eclipse.egit.ui.RepositoriesLinkWithSelection"
5985             icon="icons/elcl16/synced.png">
5986       </image>
5987       <image
5988             commandId="org.eclipse.egit.ui.team.ShowRepositoriesView"
5989             icon="icons/eview16/repo_rep.png">
5990       </image>
5991       <image
5992             commandId="org.eclipse.egit.ui.team.ShowHistory"
5993             icon="icons/obj16/history.png">
5994       </image>
5995       <image
5996             commandId="org.eclipse.egit.ui.history.CreateBranch"
5997             icon="icons/obj16/new_branch_obj.png">
5998       </image>
5999       <image
6000             commandId="org.eclipse.egit.ui.commit.CreateTag"
6001             icon="icons/obj16/new_tag_obj.png">
6002       </image>
6003       <image
6004             commandId="org.eclipse.egit.ui.commit.CreateBranch"
6005             icon="icons/obj16/new_branch_obj.png">
6006       </image>
6007       <image
6008             commandId="org.eclipse.egit.ui.history.CherryPick"
6009             icon="icons/obj16/cherry-pick.png">
6010       </image>
6011       <image
6012             commandId="org.eclipse.egit.ui.commit.CherryPick"
6013             icon="icons/obj16/cherry-pick.png">
6014       </image>
6015       <image
6016             commandId="org.eclipse.egit.ui.team.stash.apply"
6017             icon="icons/obj16/stash-apply.png">
6018       </image>
6019       <image
6020             commandId="org.eclipse.egit.ui.commit.StashApply"
6021             icon="icons/obj16/stash-apply.png">
6022       </image>
6023       <image
6024             commandId="org.eclipse.egit.ui.commit.StashDrop"
6025             icon="icons/obj16/delete_obj.png">
6026       </image>
6027       <image
6028             commandId="org.eclipse.egit.ui.history.Squash"
6029             icon="icons/obj16/squash-down.png">
6030       </image>
6031       <image
6032             commandId="org.eclipse.egit.ui.commit.Squash"
6033             icon="icons/obj16/squash-down.png">
6034       </image>
6035       <image
6036             commandId="org.eclipse.egit.ui.history.Reword"
6037             icon="icons/obj16/reword.png">
6038       </image>
6039       <image
6040             commandId="org.eclipse.egit.ui.commit.Reword"
6041             icon="icons/obj16/reword.png">
6042       </image>
6043       <image
6044             commandId="org.eclipse.egit.ui.history.Edit"
6045             icon="icons/obj16/editconfig.png">
6046       </image>
6047       <image
6048             commandId="org.eclipse.egit.ui.commit.Edit"
6049             icon="icons/obj16/editconfig.png">
6050       </image>
6051       <image
6052             commandId="org.eclipse.egit.ui.commit.Checkout"
6053             icon="icons/obj16/checkout.png">
6054       </image>
6055       <image
6056             commandId="org.eclipse.egit.ui.CheckoutCommand"
6057             icon="icons/obj16/checkout.png">
6058       </image>
6059       <image
6060             commandId="org.eclipse.egit.ui.RepositoriesViewCreateBranch"
6061             icon="icons/obj16/new_branch_obj.png">
6062       </image>
6063       <image
6064             commandId="org.eclipse.egit.ui.RepositoriesViewNewRemote"
6065             icon="icons/obj16/synchronize.png">
6066       </image>
6067       <image
6068             commandId="org.eclipse.egit.ui.history.CreateTag"
6069             icon="icons/obj16/new_tag_obj.png">
6070       </image>
6071       <image
6072             commandId="org.eclipse.egit.ui.history.PushCommit"
6073             icon="icons/obj16/push.png">
6074       </image>
6075       <image
6076             commandId="org.eclipse.egit.ui.history.CheckoutCommand"
6077             icon="icons/obj16/checkout.png">
6078       </image>
6079       <image
6080             commandId="org.eclipse.egit.ui.internal.reflog.CheckoutCommand"
6081             icon="icons/obj16/checkout.png">
6082       </image>
6083       <image
6084             commandId="org.eclipse.egit.ui.ImportChangedProjectsCommandId"
6085             icon="icons/obj16/import_prj.png">
6086       </image>
6087       <image
6088             commandId="org.eclipse.egit.ui.RepositoriesViewImportProjects"
6089             icon="icons/obj16/import_prj.png">
6090       </image>
6091       <image
6092             commandId="org.eclipse.egit.ui.RepositoriesViewCreateRepository"
6093             icon="icons/etool16/createRepository.png">
6094       </image>
6095       <image
6096             commandId="org.eclipse.egit.ui.RepositoriesToggleBranchHierarchy"
6097             icon="icons/elcl16/hierarchicalLayout.png">
6098       </image>
6099        <image
6100             commandId="org.eclipse.egit.ui.RepositoriesToggleBranchCommit"
6101             icon="icons/obj16/changelog_obj.png">
6102       </image>
6103       <image
6104             commandId="org.eclipse.egit.ui.RepositoriesViewDelete"
6105             icon="icons/obj16/delete_obj.png">
6106       </image>
6107       <image
6108             commandId="org.eclipse.egit.ui.RepositoriesViewRemove"
6109             icon="icons/obj16/clear.png">
6110       </image>
6111       <image
6112             commandId="org.eclipse.egit.ui.AbortRebase"
6113             icon="icons/elcl16/progress_stop.png">
6114       </image>
6115       <image
6116             commandId="org.eclipse.egit.ui.ContinueRebase"
6117             icon="icons/elcl16/continue.png">
6118       </image>
6119       <image
6120             commandId="org.eclipse.egit.ui.SkipRebase"
6121             icon="icons/elcl16/skip.png">
6122       </image>
6123       <image
6124             commandId="org.eclipse.egit.ui.history.Merge"
6125             icon="icons/obj16/merge.png">
6126       </image>
6127       <image
6128             commandId="org.eclipse.egit.ui.RebaseCurrent"
6129             icon="icons/obj16/rebase.png">
6130       </image>
6131       <image
6132             commandId="org.eclipse.egit.ui.team.Fetch"
6133             icon="icons/obj16/fetch.png">
6134       </image>
6135       <image
6136             commandId="org.eclipse.egit.ui.ConfigureUpstreamFetch"
6137             icon="icons/obj16/fetch.png">
6138       </image>
6139       <image
6140             commandId="org.eclipse.egit.ui.ConfigureUpstreamPush"
6141             icon="icons/obj16/push.png">
6142       </image>
6143       <image
6144             commandId="org.eclipse.egit.ui.team.Push"
6145             icon="icons/obj16/push.png">
6146       </image>
6147       <image
6148             commandId="org.eclipse.egit.ui.team.PushBranch"
6149             icon="icons/obj16/push.png">
6150       </image>
6151       <image
6152             commandId="org.eclipse.egit.ui.team.PushTags"
6153             icon="icons/obj16/push.png">
6154       </image>
6155       <image
6156             commandId="org.eclipse.egit.ui.FetchGerritChange"
6157             icon="icons/obj16/gerrit_fetch.png">
6158       </image>
6159       <image
6160             commandId="org.eclipse.egit.ui.team.AddToIndex"
6161             icon="icons/obj16/add.png">
6162       </image>
6163       <image
6164             commandId="org.eclipse.egit.ui.team.RemoveFromIndex"
6165             icon="icons/obj16/unstage.png">
6166       </image>
6167       <image
6168             commandId="org.eclipse.egit.ui.team.Branch"
6169             icon="icons/obj16/branch_obj.png">
6170       </image>
6171       <image
6172             commandId="org.eclipse.egit.ui.team.Commit"
6173             icon="icons/obj16/commit.png">
6174       </image>
6175       <image
6176             commandId="org.eclipse.egit.ui.team.SimpleFetch"
6177             icon="icons/obj16/fetch.png">
6178       </image>
6179       <image
6180             commandId="org.eclipse.egit.ui.team.SimplePush"
6181             icon="icons/obj16/push.png">
6182       </image>
6183       <image
6184             commandId="org.eclipse.egit.ui.team.Ignore"
6185             icon="icons/obj16/ignore.png">
6186       </image>
6187       <image
6188             commandId="org.eclipse.egit.ui.team.Merge"
6189             icon="icons/obj16/merge.png">
6190       </image>
6191       <image
6192             commandId="org.eclipse.egit.ui.team.MergeTool"
6193             icon="icons/obj16/mergetool.png">
6194       </image>
6195       <image
6196             commandId="org.eclipse.egit.ui.team.Rebase"
6197             icon="icons/obj16/rebase.png">
6198       </image>
6199       <image
6200             commandId="org.eclipse.egit.ui.team.Pull"
6201             icon="icons/obj16/pull.png">
6202       </image>
6203       <image
6204             commandId="org.eclipse.egit.ui.team.PullWithOptions"
6205             icon="icons/obj16/pull_with_options.png">
6206       </image>
6207       <image
6208             commandId="org.eclipse.egit.ui.team.Reset"
6209             icon="icons/obj16/reset.png">
6210       </image>
6211       <image
6212             commandId="org.eclipse.egit.ui.team.Synchronize"
6213             icon="icons/obj16/synchronize.png">
6214       </image>
6215       <image
6216             commandId="org.eclipse.egit.ui.team.Tag"
6217             icon="icons/obj16/new_tag_obj.png">
6218       </image>
6219       <image
6220             commandId="org.eclipse.egit.ui.team.AssumeUnchanged"
6221             icon="icons/obj16/assume_unchanged.png">
6222       </image>
6223       <image
6224             commandId="org.eclipse.egit.ui.team.NoAssumeUnchanged"
6225             icon="icons/obj16/no_assume_unchanged.png">
6226       </image>
6227       <image
6228             commandId="org.eclipse.egit.ui.team.DeleteBranch"
6229             icon="icons/obj16/delete_obj.png">
6230       </image>
6231       <image
6232             commandId="org.eclipse.egit.ui.team.RenameBranch"
6233             icon="icons/obj16/editconfig.png">
6234       </image>
6235       <image
6236             commandId="org.eclipse.ui.edit.rename"
6237             icon="icons/obj16/editconfig.png">
6238       </image>
6239       <image
6240             commandId="org.eclipse.egit.ui.history.DeleteBranch"
6241             icon="icons/obj16/delete_obj.png">
6242       </image>
6243       <image
6244             commandId="org.eclipse.egit.ui.history.DeleteTag"
6245             icon="icons/obj16/delete_obj.png">
6246       </image>
6247       <image
6248             commandId="org.eclipse.egit.ui.internal.reflog.OpenInCommitViewerCommand"
6249             icon="icons/obj16/open-commit.png">
6250       </image>
6251       <image
6252             commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand"
6253             icon="icons/elcl16/sha1.png">
6254       </image>
6255       <image
6256             commandId="org.eclipse.egit.ui.RebaseInteractiveCurrent"
6257             icon="icons/obj16/rebase_interactive.png">
6258       </image>
6259       <image
6260             commandId="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
6261             icon="icons/obj16/open-commit.png">
6262       </image>
6263       <image
6264             commandId="org.eclipse.egit.ui.RepositoriesViewOpen"
6265             icon="icons/obj16/open-commit.png">
6266       </image>
6267       <image
6268             commandId="org.eclipse.egit.ui.history.Revert"
6269             icon="icons/obj16/revert.png">
6270       </image>
6271       <image
6272             commandId="org.eclipse.egit.ui.commit.Revert"
6273             icon="icons/obj16/revert.png">
6274       </image>
6275       <image
6276             commandId="org.eclipse.egit.ui.commit.ShowInHistory"
6277             icon="icons/obj16/history.png">
6278       </image>
6279       <image
6280             commandId="org.eclipse.egit.ui.team.clean"
6281             icon="icons/obj16/clean_obj.png">
6282       </image>
6283       <image
6284             commandId="org.eclipse.egit.ui.team.stash.create"
6285             icon="icons/obj16/stash-create.png">
6286       </image>
6287       <image
6288             commandId="org.eclipse.egit.ui.history.ShowBlame"
6289             icon="icons/etool16/annotate.png">
6290       </image>
6291       <image
6292             commandId="org.eclipse.egit.ui.PushHeadToGerrit"
6293             icon="icons/obj16/gerrit_push.png">
6294       </image>
6295       <image
6296             commandId="org.eclipse.egit.ui.RepositoriesViewConfigureGerritRemote"
6297             icon="icons/obj16/gerrit_obj.png">
6298       </image>
6299       <image
6300             commandId="org.eclipse.egit.ui.team.GarbageCollect"
6301             icon="icons/elcl16/trash.png">
6302       </image>
6303       <image
6304             commandId="org.eclipse.egit.ui.team.Disconnect"
6305             icon="icons/obj16/disconnect_co.png">
6306       </image>
6307    </extension>
6308    <extension
6309          point="org.eclipse.core.expressions.propertyTesters">
6310       <propertyTester
6311             class="org.eclipse.egit.ui.internal.repository.tree.RepositoriesViewPropertyTester"
6312             id="org.eclipse.egit.ui.RepositoryTester"
6313             namespace="GitRepository"
6314             properties="isBare,isSafe,canCommit,canAmend,canResetHead,canStash,isRefCheckedOut,isLocalBranch,fetchExists,pushExists,canMerge,canAbortRebase,canContinueRebase,isSubmodule,containsHead,hasGerritConfiguration,canFetchFromGerrit,canPushToGerrit,canEnableLfs"
6315             type="org.eclipse.egit.ui.internal.repository.tree.RepositoryTreeNode">
6316       </propertyTester>
6317       <propertyTester
6318             class="org.eclipse.egit.ui.internal.ResourcePropertyTester"
6319             id="org.eclipse.egit.ui.ResourceTester"
6320             namespace="GitResource"
6321             properties="isShared,isContainer,isSafe,canCommit,canAmend,canResetHead,canAbortRebase,canContinueRebase,hasGerritConfiguration,canFetchFromGerrit,canPushToGerrit"
6322             type="org.eclipse.core.resources.IResource">
6323       </propertyTester>
6324       <propertyTester
6325             class="org.eclipse.egit.ui.internal.selection.SelectionPropertyTester"
6326             id="org.eclipse.egit.ui.SelectionTester"
6327             namespace="GitSelection"
6328             properties="projectsSingleRepository,projectsWithRepositories,resourcesSingleRepository,fileOrFolderInRepository,resourcesAllInRepository,selectionSingleRepository"
6329             type="java.util.Collection">
6330       </propertyTester>
6331       <propertyTester
6332             class="org.eclipse.egit.ui.internal.resources.ResourceStatePropertyTester"
6333             id="org.eclipse.egit.ui.ResourceStateTester"
6334             namespace="org.eclipse.egit.ui.resources.ResourceState"
6335             properties="hasStagedChanges,hasUnstagedChanges,hasNotIgnoredResources,hasTrackedResources"
6336             type="java.util.Collection">
6337       </propertyTester>
6338       <propertyTester
6339             class="org.eclipse.egit.ui.internal.expressions.GitPropertyTester"
6340             id="org.eclipse.egit.ui.GitRepositoryCommitTester"
6341             namespace="Git"
6342             properties="parentCount,isBare,isSafe,canCommit,hasMultipleRefs,hasRef"
6343             type="org.eclipse.egit.core.internal.IRepositoryCommit">
6344       </propertyTester>
6345       <propertyTester
6346             class="org.eclipse.egit.ui.internal.expressions.GitPropertyTester"
6347             id="org.eclipse.egit.ui.GitRepositoryTester"
6348             namespace="Git"
6349             properties="isBare,isSafe,canCommit"
6350             type="org.eclipse.jgit.lib.Repository">
6351       </propertyTester>
6352       <propertyTester
6353             class="org.eclipse.egit.ui.internal.expressions.GitPropertyTester"
6354             id="org.eclipse.egit.ui.GitRevCommitTester"
6355             namespace="Git"
6356             properties="parentCount"
6357             type="org.eclipse.jgit.revwalk.RevCommit">
6358       </propertyTester>
6359       <propertyTester
6360             class="org.eclipse.egit.ui.internal.history.GitHistoryPropertyTester"
6361             id="org.eclipse.egit.ui.GitHistoryTester"
6362             namespace="GitHistory"
6363             properties="isSingleFileHistory"
6364             type="org.eclipse.team.ui.history.IHistoryView">
6365       </propertyTester>
6366       <propertyTester
6367             class="org.eclipse.egit.ui.internal.expressions.BundlePropertyTester"
6368             id="org.eclipse.egit.ui.BundlePropertyTester"
6369             namespace="org.eclipse.egit.ui.BundleProperty"
6370             properties="isBundleInstalled"
6371             type="java.util.Collection">
6372       </propertyTester>
6373    </extension>
6374    <extension
6375          point="org.eclipse.ui.navigator.linkHelper">
6376       <linkHelper
6377             class="org.eclipse.egit.ui.internal.repository.tree.LinkHelper"
6378             id="org.eclipse.egit.ui.RepositoriesViewLinkHelper">
6379          <editorInputEnablement>
6380             <instanceof
6381                   value="org.eclipse.ui.IURIEditorInput">
6382             </instanceof></editorInputEnablement>
6383          <selectionEnablement>
6384             <instanceof
6385                   value="org.eclipse.egit.ui.internal.repository.tree.FileNode">
6386             </instanceof>
6387          </selectionEnablement>
6388       </linkHelper>
6389     </extension>
6390     <extension
6391          id="changeSetModel"
6392          name="%ChangeSetModel.name"
6393          point="org.eclipse.core.resources.modelProviders">
6394       <modelProvider
6395             class="org.eclipse.egit.ui.internal.synchronize.GitChangeSetModelProvider"/>
6396       <enablement>
6397         <instanceof
6398              value="org.eclipse.core.resources.IResource" />
6399       </enablement>
6400       <extends-model id="org.eclipse.core.resources.modelProvider"/>
6401    </extension>
6402     <extension
6403          point="org.eclipse.team.ui.synchronizeWizards">
6404       <wizard
6405             class="org.eclipse.egit.ui.internal.synchronize.GitSynchronizeWizard"
6406             description="%gitsyncwizard.description"
6407             icon="icons/obj16/gitrepository.png"
6408             id="org.eclipse.egit.ui.wizard1"
6409             name="%Synchronize_Name">
6410       </wizard>
6411    </extension>
6412    <extension
6413          point="org.eclipse.team.ui.synchronizeParticipants">
6414       <participant
6415             class="org.eclipse.egit.ui.internal.synchronize.GitModelSynchronizeParticipant"
6416             id="org.eclipse.egit.ui.modelCompareParticipant"
6417             name="%Synchronize_Name"
6418             icon="icons/obj16/gitrepository.png"
6419             persistent="true"/>
6420    </extension>
6421    <extension
6422          point="org.eclipse.ui.navigator.navigatorContent">
6423       <navigatorContent
6424             activeByDefault="false"
6425             contentProvider="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetContentProvider"
6426             icon="$nl$/icons/obj16/changelog_obj.png"
6427             id="org.eclipse.egit.ui.changeSetContent"
6428             labelProvider="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetLabelProvider"
6429             name="%Synchronize_ChangeSet"
6430             priority="normal">
6431          <enablement>
6432            <or>
6433             <instanceof value="org.eclipse.egit.ui.internal.synchronize.GitChangeSetModelProvider"/>
6434             <instanceof value="org.eclipse.egit.ui.internal.synchronize.model.GitModelBlob"/>
6435             <instanceof value="org.eclipse.egit.ui.internal.synchronize.model.GitModelCacheTree"/>
6436            </or>
6437          </enablement>
6438              <dropAssistant
6439                      class="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetDropAdapterAssistant"
6440                      id="org.eclipse.egit.ui.changeSetDropAssistant">
6441                <possibleDropTargets>
6442              <instanceof value="org.eclipse.egit.ui.internal.synchronize.model.GitModelCache"/>
6443                </possibleDropTargets>
6444              </dropAssistant>
6445              <commonSorter
6446                class="org.eclipse.egit.ui.internal.synchronize.mapping.GitChangeSetSorter"/>
6447        </navigatorContent>
6448    </extension>
6449    <extension
6450          point="org.eclipse.team.ui.teamContentProviders">
6451       <teamContentProvider
6452             contentExtensionId="org.eclipse.egit.ui.changeSetContent"
6453             icon="$nl$/icons/obj16/changelog_obj.png"
6454             modelProviderId="org.eclipse.egit.ui.changeSetModel"/>
6455    </extension>
6456    <extension point="org.eclipse.ui.navigator.viewer">
6457        <viewer viewerId="org.eclipse.egit.ui.compareSynchronization">
6458            <popupMenu
6459                 allowsPlatformContributions="false"
6460                 id="org.eclipse.egit.ui.compareSynchronizationMenu">
6461              <insertionPoint name="gitActions" separator="true"/>
6462              <insertionPoint name="file"/>
6463              <insertionPoint name="file-bottom"/>
6464              <insertionPoint name="edit" separator="true"/>
6465              <insertionPoint name="synchronize"/>
6466              <insertionPoint name="navigate" separator="true"/>
6467              <insertionPoint name="modelTeam" separator="true"/>
6468              <insertionPoint name="sort" separator="true"/>
6469                          <insertionPoint name="additions" separator="true"/>
6470           </popupMenu>
6471        </viewer>
6472    </extension>
6473    <extension
6474          name="%TeamMenuCommandsLabel"
6475          point="org.eclipse.ui.commands">
6476       <command
6477             categoryId="org.eclipse.egit.ui.commandCategory"
6478             defaultHandler="org.eclipse.egit.ui.internal.actions.AddToIndexActionHandler"
6479             id="org.eclipse.egit.ui.team.AddToIndex"
6480             name="%AddToIndexCommand.name">
6481       </command>
6482       <command
6483             categoryId="org.eclipse.egit.ui.commandCategory"
6484             defaultHandler="org.eclipse.egit.ui.internal.actions.CreatePatchActionHandler"
6485             id="org.eclipse.egit.ui.team.CreatePatch"
6486             name="%CreatePatchCommand.name">
6487       </command>
6488       <command
6489             categoryId="org.eclipse.egit.ui.commandCategory"
6490             defaultHandler="org.eclipse.egit.ui.internal.actions.RemoveFromIndexActionHandler"
6491             id="org.eclipse.egit.ui.team.RemoveFromIndex"
6492             name="%RemoveFromIndexCommand.name">
6493       </command>
6494       <command
6495             categoryId="org.eclipse.egit.ui.commandCategory"
6496             defaultHandler="org.eclipse.egit.ui.internal.actions.BranchActionHandler"
6497             id="org.eclipse.egit.ui.team.Branch"
6498             name="%BranchCommand.name">
6499       </command>
6500       <command
6501             categoryId="org.eclipse.egit.ui.commandCategory"
6502             id="org.eclipse.egit.ui.team.CompareWithHead"
6503             name="%CompareWithHeadCommand.name">
6504       </command>
6505       <command
6506             categoryId="org.eclipse.egit.ui.commandCategory"
6507             id="org.eclipse.egit.ui.team.CompareWithIndex"
6508             name="%CompareWithIndexCommand.name">
6509       </command>
6510       <command
6511             categoryId="org.eclipse.egit.ui.commandCategory"
6512             id="org.eclipse.egit.ui.team.CompareIndexWithHead"
6513             name="%CompareIndexWithHeadCommand.name">
6514       </command>
6515       <command
6516             categoryId="org.eclipse.egit.ui.commandCategory"
6517             id="org.eclipse.egit.ui.team.CompareWithPrevious"
6518             name="%CompareWithPreviousCommand.name">
6519       </command>
6520       <command
6521             categoryId="org.eclipse.egit.ui.commandCategory"
6522             id="org.eclipse.egit.ui.team.CompareWithRef"
6523             name="%CompareWithHistoryCommand.name">
6524       </command>
6525       <command
6526             categoryId="org.eclipse.egit.ui.commandCategory"
6527             id="org.eclipse.egit.ui.team.CompareWithCommit"
6528             name="%CompareWithCommitCommand.name">
6529       </command>
6530       <command
6531             categoryId="org.eclipse.egit.ui.commandCategory"
6532             id="org.eclipse.egit.ui.team.Discard"
6533             name="%ReplaceWithIndexCommand.name">
6534       </command>
6535       <command
6536             categoryId="org.eclipse.egit.ui.commandCategory"
6537             id="org.eclipse.egit.ui.team.ReplaceWithHead"
6538             name="%ReplaceWithHeadCommand.name">
6539       </command>
6540       <command
6541             categoryId="org.eclipse.egit.ui.commandCategory"
6542             id="org.eclipse.egit.ui.team.ReplaceWithCommit"
6543             name="%ReplaceWithCommitCommand.name">
6544       </command>
6545       <command
6546             categoryId="org.eclipse.egit.ui.commandCategory"
6547             id="org.eclipse.egit.ui.team.ReplaceWithRef"
6548             name="%ReplaceWithRefCommand.name">
6549       </command>
6550       <command
6551             categoryId="org.eclipse.egit.ui.commandCategory"
6552             id="org.eclipse.egit.ui.team.ReplaceWithPrevious"
6553             name="%ReplaceWithPreviousCommand.name">
6554       </command>
6555       <command
6556             categoryId="org.eclipse.egit.ui.commandCategory"
6557             defaultHandler="org.eclipse.egit.ui.internal.actions.IgnoreActionHandler"
6558             id="org.eclipse.egit.ui.team.Ignore"
6559             name="%IgnoreCommand.name">
6560       </command>
6561       <command
6562             categoryId="org.eclipse.egit.ui.commandCategory"
6563             defaultHandler="org.eclipse.egit.ui.internal.actions.TagActionHandler"
6564             id="org.eclipse.egit.ui.team.Tag"
6565             name="%TagCommand.name">
6566       </command>
6567       <command
6568             categoryId="org.eclipse.egit.ui.commandCategory"
6569             defaultHandler="org.eclipse.egit.ui.internal.actions.ShowRepositoriesViewActionHandler"
6570             id="org.eclipse.egit.ui.team.ShowRepositoriesView"
6571             name="%ShowRepoViewCommand.name">
6572       </command>
6573       <command
6574             categoryId="org.eclipse.egit.ui.commandCategory"
6575             defaultHandler="org.eclipse.egit.ui.internal.actions.ApplyPatchActionHandler"
6576             id="org.eclipse.egit.ui.team.ApplyPatch"
6577             name="%ApplyPatchCommand.name">
6578       </command>
6579       <command
6580             categoryId="org.eclipse.egit.ui.commandCategory"
6581             defaultHandler="org.eclipse.egit.ui.internal.actions.MergeToolActionHandler"
6582             id="org.eclipse.egit.ui.team.MergeTool"
6583             name="%MergeToolCommand.name">
6584       </command>
6585       <command
6586             defaultHandler="org.eclipse.egit.ui.internal.actions.ConfigureFetchActionHandler"
6587             id="org.eclipse.egit.ui.ConfigureUpstreamFetch"
6588             name="%ConfigureUpstreamFetchCommand.name">
6589       </command>
6590       <command
6591             defaultHandler="org.eclipse.egit.ui.internal.actions.ConfigurePushActionHandler"
6592             id="org.eclipse.egit.ui.ConfigureUpstreamPush"
6593             name="%ConfigureUpstreamPushCommand.name">
6594       </command>
6595       <command
6596             categoryId="org.eclipse.egit.ui.commandCategory"
6597             defaultHandler="org.eclipse.egit.ui.internal.actions.ConfigureFetchActionHandler"
6598             id="org.eclipse.egit.ui.team.ConfigureFetch"
6599             name="%ConfigureUpstreamFetchCommand.name">
6600       </command>
6601       <command
6602             categoryId="org.eclipse.egit.ui.commandCategory"
6603             defaultHandler="org.eclipse.egit.ui.internal.actions.ConfigurePushActionHandler"
6604             id="org.eclipse.egit.ui.team.ConfigurePush"
6605             name="%ConfigureUpstreamPushCommand.name">
6606       </command>
6607       <command
6608             categoryId="org.eclipse.egit.ui.commandCategory"
6609             defaultHandler="org.eclipse.egit.ui.internal.actions.DeleteBranchActionHandler"
6610             id="org.eclipse.egit.ui.team.DeleteBranch"
6611             name="%DeleteBranchCommand.name">
6612       </command>
6613       <command
6614             categoryId="org.eclipse.egit.ui.commandCategory"
6615             id="org.eclipse.egit.ui.team.RenameBranch"
6616             name="%RenameBranchCommand">
6617       </command>
6618       <command
6619             categoryId="org.eclipse.egit.ui.commandCategory"
6620             defaultHandler="org.eclipse.egit.ui.internal.actions.AssumeUnchangedActionHandler"
6621             id="org.eclipse.egit.ui.team.AssumeUnchanged"
6622             name="%AssumeUnchangedCommand">
6623       </command>
6624       <command
6625             categoryId="org.eclipse.egit.ui.commandCategory"
6626             defaultHandler="org.eclipse.egit.ui.internal.actions.NoAssumeUnchangedActionHandler"
6627             id="org.eclipse.egit.ui.team.NoAssumeUnchanged"
6628             name="%NoAssumeUnchangedCommand">
6629       </command>
6630       <command
6631             categoryId="org.eclipse.egit.ui.commandCategory"
6632             id="org.eclipse.egit.ui.team.Untrack"
6633             name="%UntrackCommand.name">
6634       </command>
6635    </extension>
6636    <extension
6637          point="org.eclipse.ui.bindings">
6638       <key
6639             commandId="org.eclipse.egit.ui.team.Commit"
6640             contextId="org.eclipse.ui.contexts.window"
6641             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
6642             sequence="M1+#">
6643       </key>
6644       <!-- Command+Shift+3 takes a screenshot on the Mac. Delete and redefine key binding: -->
6645       <key
6646             platform="carbon"
6647             commandId=""
6648             contextId="org.eclipse.ui.contexts.window"
6649             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
6650             sequence="M1+#">
6651       </key>
6652       <key
6653             platform="carbon"
6654             commandId="org.eclipse.egit.ui.team.Commit"
6655             contextId="org.eclipse.ui.contexts.window"
6656             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
6657             sequence="COMMAND+ALT+3">
6658       </key>
6659       <key
6660             commandId="org.eclipse.egit.ui.RepositoriesViewPaste"
6661             contextId="org.eclipse.egit.ui.RepositoriesView"
6662             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
6663             sequence="M1+V">
6664       </key>
6665       <key
6666             commandId="org.eclipse.egit.ui.RepositoriesViewCopyPath"
6667             contextId="org.eclipse.egit.ui.RepositoriesView"
6668             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
6669             sequence="M1+C">
6670       </key>
6671       <key
6672             commandId="org.eclipse.egit.ui.internal.reflog.CopyCommand"
6673             contextId="org.eclipse.egit.ui.ReflogView"
6674             schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
6675             sequence="M1+C">
6676       </key>
6677    </extension>
6678    <extension
6679          name="%HistoryViewCommands.extension.name"
6680          point="org.eclipse.ui.commands">
6681       <command
6682             id="org.eclipse.egit.ui.history.CompareVersions"
6683             name="%CompareCommand.name">
6684       </command>
6685       <command
6686             id="org.eclipse.egit.ui.history.CompareVersionsInTree"
6687             name="%CompareInTreeCommand.name">
6688       </command>
6689       <command
6690             id="org.eclipse.egit.ui.history.CompareWithWorkingTree"
6691             name="%CompareWithWorkTreeCommand.name">
6692       </command>
6693       <command
6694             id="org.eclipse.egit.ui.history.CompareWithHead"
6695             name="%CompareWithHeadCommand.name">
6696       </command>
6697       <command
6698             id="org.eclipse.egit.ui.history.ShowVersions"
6699             name="%ShowVersionsCommand.name">
6700          <commandParameter
6701                id="org.eclipse.egit.ui.history.CompareMode"
6702                name="%CompareModeCommandParameter.name"
6703                optional="true">
6704          </commandParameter>
6705       </command>
6706       <command
6707             id="org.eclipse.egit.ui.history.CreatePatch"
6708             name="%CreatePatchCommand.name">
6709       </command>
6710       <command
6711             id="org.eclipse.egit.ui.history.CreateBranch"
6712             name="%CreateBranchCommand.name">
6713       </command>
6714       <command
6715             id="org.eclipse.egit.ui.history.DeleteBranch"
6716             name="%DeleteBranchCommand.name">
6717       </command>
6718       <command
6719             id="org.eclipse.egit.ui.history.CreateTag"
6720             name="%CreateTagCommand.name">
6721       </command>
6722       <command
6723             id="org.eclipse.egit.ui.history.DeleteTag"
6724             name="%DeleteTagCommand.name">
6725       </command>
6726       <command
6727             id="org.eclipse.egit.ui.history.PushCommit"
6728             name="%PushCommit.name">
6729       </command>
6730       <command
6731             id="org.eclipse.egit.ui.history.Reset"
6732             name="%ResetCommand.name">
6733          <commandParameter
6734                id="org.eclipse.egit.ui.history.ResetMode"
6735                name="%ResetModeCommandParameter.name"
6736                optional="false">
6737          </commandParameter>
6738       </command>
6739       <command
6740             id="org.eclipse.egit.ui.history.ResetQuickdiffBaseline"
6741             name="%ResetQuickdiffCommand.name">
6742          <commandParameter
6743                id="org.eclipse.egit.ui.history.ResetQuickdiffBaselineTarget"
6744                name="%ResetTargetCommandParameter.name"
6745                optional="false">
6746          </commandParameter>
6747       </command>
6748       <command
6749             id="org.eclipse.egit.ui.history.SetQuickdiffBaseline"
6750             name="%SetQuickdiffBaselineCommand.name">
6751       </command>
6752       <command
6753             id="org.eclipse.egit.ui.history.CheckoutCommand"
6754             name="%CheckoutCommand.name">
6755       </command>
6756       <command
6757             id="org.eclipse.egit.ui.history.OpenInTextEditorCommand"
6758             name="%OpenInTextEditorCommand.name">
6759       </command>
6760       <command
6761             id="org.eclipse.egit.ui.history.CherryPick"
6762             name="%CherryPickCommand.name">
6763       </command>
6764       <command
6765             id="org.eclipse.egit.ui.commit.CherryPick"
6766             name="%CherryPickCommand.name">
6767       </command>
6768       <command
6769             id="org.eclipse.egit.ui.history.Squash"
6770             name="%SquashCommitsCommand.name">
6771       </command>
6772       <command
6773             defaultHandler="org.eclipse.egit.ui.internal.commit.command.SquashHandler"
6774             id="org.eclipse.egit.ui.commit.Squash"
6775             name="%SquashCommitsCommand.name">
6776       </command>
6777       <command
6778             id="org.eclipse.egit.ui.history.Reword"
6779             name="%RewordCommitCommand.name">
6780       </command>
6781       <command
6782             defaultHandler="org.eclipse.egit.ui.internal.commit.command.RewordHandler"
6783             id="org.eclipse.egit.ui.commit.Reword"
6784             name="%RewordCommitCommand.name">
6785       </command>
6786       <command
6787             id="org.eclipse.egit.ui.history.Edit"
6788             name="%EditCommitCommand.name">
6789       </command>
6790       <command
6791             defaultHandler="org.eclipse.egit.ui.internal.commit.command.EditHandler"
6792             id="org.eclipse.egit.ui.commit.Edit"
6793             name="%EditCommitCommand.name">
6794       </command>
6795       <command
6796             id="org.eclipse.egit.ui.history.Revert"
6797             name="%RevertCommand.name">
6798       </command>
6799       <command
6800             id="org.eclipse.egit.ui.commit.Revert"
6801             name="%RevertCommand.name">
6802       </command>
6803       <command
6804             id="org.eclipse.egit.ui.commit.ShowInHistory"
6805             name="%ShowInHistoryCommand.name">
6806       </command>
6807       <command
6808             id="org.eclipse.egit.ui.history.Merge"
6809             name="%MergeCommand.name">
6810       </command>
6811       <command
6812             id="org.eclipse.egit.ui.RebaseCurrent"
6813             name="%RebaseCurrentCommand.name">
6814       </command>
6815       <command
6816             id="org.eclipse.egit.ui.RebaseInteractiveCurrent"
6817             name="%RebaseInteractiveCurrentCommand.name">
6818       </command>
6819       <command
6820             id="org.eclipse.egit.ui.history.OpenInCommitViewerCommand"
6821             name="%OpenInCommitViewerCommand.name">
6822       </command>
6823    </extension>
6824    <extension
6825          name="%CommitViewerCommands.extension.name"
6826          point="org.eclipse.ui.commands">
6827       <command
6828             id="org.eclipse.egit.ui.commit.CreateTag"
6829             name="%CreateTagCommand.name">
6830       </command>
6831       <command
6832             id="org.eclipse.egit.ui.commit.CreateBranch"
6833             name="%CreateBranchCommand">
6834       </command>
6835       <command
6836             id="org.eclipse.egit.ui.commit.Checkout"
6837             name="%CheckoutCommand">
6838       </command>
6839       <command
6840             id="org.eclipse.egit.ui.history.ShowBlame"
6841             name="%ShowBlameCommand.name">
6842       </command>
6843       <command
6844             id="org.eclipse.egit.ui.commit.StashApply"
6845             name="%StashApplyCommand.name">
6846       </command>
6847       <command
6848             id="org.eclipse.egit.ui.commit.StashDrop"
6849             name="%StashDropCommand.name">
6850       </command>
6851    </extension>
6852    <extension
6853          point="org.eclipse.ui.newWizards">
6854       <wizard
6855             category="org.eclipse.egit.ui.wizardCategory"
6856             class="org.eclipse.egit.ui.internal.repository.NewRepositoryWizard"
6857             hasPages="true"
6858             icon="icons/etool16/createRepository.png"
6859             id="org.eclipse.egit.ui.CreateRepositoryWizard"
6860             name="%CreateRepositoryWizard.name">
6861       </wizard>
6862       <category
6863             id="org.eclipse.egit.ui.wizardCategory"
6864             name="%Git">
6865       </category>
6866    </extension>
6867    <extension
6868          point="org.eclipse.ui.contexts">
6869       <context
6870             id="org.eclipse.egit.ui.RepositoriesView"
6871             name="%RepositoriesViewContext.name"
6872             parentId="org.eclipse.ui.contexts.window">
6873       </context>
6874       <context
6875             id="org.eclipse.egit.ui.ReflogView"
6876             name="%ReflogViewContext"
6877             parentId="org.eclipse.ui.contexts.window">
6878       </context>
6879    </extension>
6880    <extension
6881          point="org.eclipse.ui.editors">
6882       <editor
6883             class="org.eclipse.egit.ui.internal.commit.CommitEditor"
6884             contributorClass="org.eclipse.egit.ui.internal.commit.CommitEditorActionBarContributor"
6885             default="false"
6886             icon="icons/obj16/changelog_obj.png"
6887             id="org.eclipse.egit.ui.commitEditor"
6888             name="%CommitEditor.name">
6889       </editor>
6890    </extension>
6891    <extension
6892          point="org.eclipse.ui.actionSetPartAssociations">
6893       <actionSetPartAssociation
6894             targetID="org.eclipse.ui.edit.text.actionSet.presentation">
6895          <part
6896                id="org.eclipse.egit.ui.commitEditor">
6897          </part>
6898       </actionSetPartAssociation>
6899    </extension>
6900    <extension
6901          point="org.eclipse.ui.editors.annotationTypes">
6902       <type name="org.eclipse.egit.ui.commitEditor.diffAdded" />
6903       <type name="org.eclipse.egit.ui.commitEditor.diffRemoved" />
6904    </extension>
6905    <extension
6906          point="org.eclipse.ui.editors.markerAnnotationSpecification">
6907       <specification
6908             annotationType="org.eclipse.egit.ui.commitEditor.diffAdded"
6909             overviewRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedInOverviewRuler"
6910             overviewRulerPreferenceValue="true"
6911             verticalRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedInVerticalRuler"
6912             verticalRulerPreferenceValue="false"
6913             textPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedIndication"
6914             textPreferenceValue="false"
6915             highlightPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedHighlighting"
6916             highlightPreferenceValue="false"
6917             showInNextPrevDropdownToolbarActionKey="org.eclipse.egit.ui.commitEditor.diffAddedInNextPrevDropdownToolbarAction"
6918             showInNextPrevDropdownToolbarAction="false"
6919             isGoToNextNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffAddedGoToNextNavigationTarget"
6920             isGoToNextNavigationTarget="true"
6921             isGoToPreviousNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffAddedGoToPreviousNavigationTarget"
6922             isGoToPreviousNavigationTarget="true"
6923             colorPreferenceKey="org.eclipse.egit.ui.commitEditor.diffAddedColor"
6924             colorPreferenceValue="221,255,221"
6925             contributesToHeader="false"
6926             presentationLayer="5"
6927             includeOnPreferencePage="false">
6928       </specification>
6929       <specification
6930             annotationType="org.eclipse.egit.ui.commitEditor.diffRemoved"
6931             overviewRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedInOverviewRuler"
6932             overviewRulerPreferenceValue="true"
6933             verticalRulerPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedInVerticalRuler"
6934             verticalRulerPreferenceValue="false"
6935             textPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedIndication"
6936             textPreferenceValue="false"
6937             highlightPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedHighlighting"
6938             highlightPreferenceValue="false"
6939             showInNextPrevDropdownToolbarActionKey="org.eclipse.egit.ui.commitEditor.diffRemovedInNextPrevDropdownToolbarAction"
6940             showInNextPrevDropdownToolbarAction="false"
6941             isGoToNextNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffRemovedGoToNextNavigationTarget"
6942             isGoToNextNavigationTarget="true"
6943             isGoToPreviousNavigationTargetKey="org.eclipse.egit.ui.commitEditor.diffRemovedGoToPreviousNavigationTarget"
6944             isGoToPreviousNavigationTarget="true"
6945             colorPreferenceKey="org.eclipse.egit.ui.commitEditor.diffRemovedColor"
6946             colorPreferenceValue="255,221,221"
6947             contributesToHeader="false"
6948             presentationLayer="5"
6949             includeOnPreferencePage="false">
6950       </specification>
6951    </extension>
6952    <extension
6953          point="org.eclipse.ui.editors.templates">
6954       <resolver
6955             class="org.eclipse.egit.ui.internal.variables.GitTemplateVariableResolver"
6956             contextTypeId="java"
6957             type="git_config"
6958             description="%GitTemplateVariableResolver_GitConfigDescription">
6959       </resolver>
6960    </extension>
6961    <extension
6962          point="org.eclipse.ui.editors.templates">
6963       <resolver
6964             class="org.eclipse.egit.ui.internal.variables.GitTemplateVariableResolver"
6965             contextTypeId="javadoc"
6966             type="git_config"
6967             description="%GitTemplateVariableResolver_GitConfigDescription">
6968       </resolver>
6969    </extension>
6970    <extension
6971          point="org.eclipse.ui.elementFactories">
6972       <factory
6973             class="org.eclipse.egit.ui.internal.commit.CommitEditorInputFactory"
6974             id="org.eclipse.egit.ui.internal.commit.CommitEditorInputFactory">
6975       </factory>
6976    </extension>
6977     <extension point="org.eclipse.search.searchPages">
6978       <page
6979             class="org.eclipse.egit.ui.internal.search.CommitSearchPage"
6980             icon="icons/obj16/search-commit.png"
6981             id="org.eclipse.egit.ui.commitSearchPage"
6982             label="%CommitSearchPage.label">
6983       </page>
6984    </extension>
6985    <extension
6986          point="org.eclipse.search.searchResultViewPages">
6987       <viewPage
6988             class="org.eclipse.egit.ui.internal.search.CommitSearchResultsPage"
6989             icon="icons/obj16/search-commit.png"
6990             id="org.eclipse.egit.ui.commitSearchResultsPage"
6991             label="%CommitSearchResults.label"
6992             searchResultClass="org.eclipse.egit.ui.internal.search.CommitSearchResult">
6993       </viewPage>
6994    </extension>
6996    <extension
6997          point="org.eclipse.ui.actionSets">
6998       <actionSet
6999             id="org.eclipse.egit.ui.navigation"
7000             label="%NavigationActionSet.label"
7001             visible="false">
7002         <action
7003                class="org.eclipse.egit.ui.internal.commit.OpenCommitAction"
7004                definitionId="org.eclipse.egit.ui.team.OpenCommit"
7005                icon="icons/obj16/open-commit.png"
7006                id="org.eclipse.egit.ui.commit.OpenCommitAction"
7007                label="%OpenCommitAction.label"
7008                menubarPath="navigate/open.ext3"
7009                style="push"
7010                toolbarPath="org.eclipse.search.searchActionSet/Search"
7011                tooltip="%OpenCommitAction.tooltip"/>
7012        </actionSet>
7013    </extension>
7014    <extension
7015          point="org.eclipse.ui.actionSetPartAssociations">
7016       <actionSetPartAssociation
7017             targetID="org.eclipse.egit.ui.navigation">
7018          <part
7019                id="org.eclipse.egit.ui.RepositoriesView">
7020          </part>
7021          <part
7022                id="org.eclipse.egit.ui.StagingView">
7023          </part>
7024          <part
7025                id="org.eclipse.egit.ui.CompareTreeView">
7026          </part>
7027          <part
7028                id="org.eclipse.egit.ui.ReflogView">
7029          </part>
7030          <part
7031                id="org.eclipse.egit.ui.InteractiveRebaseView">
7032          </part>
7033          <part
7034                id="org.eclipse.egit.ui.commitEditor">
7035          </part>
7036          <part
7037                id="org.eclipse.team.ui.GenericHistoryView">
7038          </part>
7039       </actionSetPartAssociation>
7040    </extension>
7042   <extension
7043         point="org.eclipse.core.variables.dynamicVariables">
7044      <variable
7045            description="%GitVariable_git_dir"
7046            name="git_dir"
7047            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7048            supportsArgument="true">
7049      </variable>
7050      <variable
7051            description="%GitVariable_git_repo_relative_path"
7052            name="git_repo_relative_path"
7053            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7054            supportsArgument="true">
7055      </variable>
7056      <variable
7057            description="%GitVariable__git_work_tree_description"
7058            name="git_work_tree"
7059            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7060            supportsArgument="true">
7061      </variable>
7062      <variable
7063            description="%GitVariable_git_branch_description"
7064            name="git_branch"
7065            resolver="org.eclipse.egit.ui.internal.variables.GitVariableResolver"
7066            supportsArgument="true">
7067      </variable>
7068   </extension>
7069   <extension
7070         point="org.eclipse.debug.ui.stringVariablePresentations">
7071      <variablePresentation
7072            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7073            variableName="git_dir">
7074      </variablePresentation>
7075      <variablePresentation
7076            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7077            variableName="git_repo_relative_path">
7078      </variablePresentation>
7079      <variablePresentation
7080            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7081            variableName="git_work_tree">
7082      </variablePresentation>
7083      <variablePresentation
7084            argumentSelector="org.eclipse.debug.internal.ui.stringsubstitution.ResourceSelector"
7085            variableName="git_branch">
7086      </variablePresentation>
7087   </extension>
7088   <extension
7089         point="org.eclipse.mylyn.tasks.bugs.support">
7090         <product
7091               description="%support.egit.description"
7092               id="org.eclipse.egit"
7093               name="%support.egit.name"
7094               icon="icons/egit.png"
7095               providerId="org.eclipse"
7096               url="https://www.eclipse.org/egit"/>
7097                 <mapping namespace="org.eclipse.egit.ui" productId="org.eclipse.egit">
7098                         <property name="product" value="EGit"/>
7099                         <property name="component" value="UI"/>
7100                 </mapping>
7101                 <mapping namespace="org.eclipse.egit.core" productId="org.eclipse.egit">
7102                         <property name="product" value="EGit"/>
7103                         <property name="component" value="Core"/>
7104                 </mapping>
7105                 <mapping namespace="org.eclipse.egit.mylyn" productId="org.eclipse.egit">
7106                         <property name="product" value="EGit"/>
7107                         <property name="component" value="Mylyn"/>
7108                 </mapping>
7109                 <mapping namespace="org.eclipse.egit.github" productId="org.eclipse.egit">
7110                         <property name="product" value="EGit"/>
7111                         <property name="component" value="GitHub"/>
7112                 </mapping>
7113                 <mapping namespace="org.eclipse.egit.mylyn.internal.github" productId="org.eclipse.egit">
7114                         <property name="product" value="EGit"/>
7115                         <property name="component" value="GitHub"/>
7116                 </mapping>
7117                 <mapping namespace="org.eclipse.egit.gitflow" productId="org.eclipse.egit">
7118                         <property name="product" value="EGit"/>
7119                         <property name="component" value="Gitflow"/>
7120                 </mapping>
7121   </extension>
7122   <extension
7123         point="org.eclipse.egit.ui.cloneSourceProvider">
7124      <source
7125            hasFixLocation="true"
7126            icon="/icons/obj16/editconfig.png"
7127            label="%CloneUri.label">
7128      </source>
7129      <repositorySearchPage
7130            class="org.eclipse.egit.ui.internal.components.RepositorySelectionPage"></repositorySearchPage>
7131   </extension>
7132   <extension
7133         name="%ReflogViewCommands"
7134         point="org.eclipse.ui.commands">
7135      <command
7136            id="org.eclipse.egit.ui.internal.reflog.OpenInCommitViewerCommand"
7137            name="%OpenInCommitViewerCommand.name">
7138      </command>
7139      <command
7140            id="org.eclipse.egit.ui.internal.reflog.CheckoutCommand"
7141            name="%CheckoutCommand.name">
7142      </command>
7143      <command
7144            id="org.eclipse.egit.ui.internal.reflog.CopyCommand"
7145            name="%ReflogCopyCommandName">
7146      </command>
7147   </extension>
7148    <extension
7149         point="org.eclipse.team.core.bundleImporters">
7150     <importer
7151            id="org.eclipse.egit.core.importer"
7152            name="%gitBundleImporter"
7153            repository="org.eclipse.egit.core.GitProvider">
7154         <supports
7155               prefix="scm:git:">
7156         </supports>
7157      </importer>
7158    </extension>
7159    <extension
7160          point="org.eclipse.team.ui.scmUrlImportPages">
7161       <scmUrlImportPage
7162             importer="org.eclipse.egit.core.importer"
7163             page="org.eclipse.egit.ui.internal.importing.GitScmUrlImportWizardPage">
7164       </scmUrlImportPage>
7165    </extension>
7166    <extension
7167         point="org.eclipse.e4.ui.css.swt.theme">
7168      <stylesheet uri="css/egit.css" />
7169      <stylesheet
7170            uri="css/e4-dark_egit_prefstyle.css">
7171         <themeid
7172               refid="org.eclipse.e4.ui.css.theme.e4_dark">
7173         </themeid>
7174      </stylesheet>
7175   </extension>
7176   <extension point="org.eclipse.core.contenttype.contentTypes">
7177     <file-association
7178         content-type="org.eclipse.core.runtime.text"
7179         file-names=".gitignore"/>
7180     <content-type
7181         id="org.eclipse.egit.contenttype.gitignore"
7182         base-type="org.eclipse.core.runtime.text"
7183         file-names=".gitignore"
7184         priority="normal"
7185         name="%GitIgnoreContentTypeName"/>
7186   </extension>
7187   <extension
7188         point="org.eclipse.ui.trace.traceComponents">
7189      <component
7190            id="org.eclipse.egit.ui.traceComponent"
7191            label="%extension.traceComponent.name">
7192         <bundle
7193               name="org.eclipse.egit.core">
7194         </bundle>
7195         <bundle
7196               name="org.eclipse.egit.ui">
7197         </bundle>
7198      </component>
7199   </extension>
7200   <extension
7201         point="org.eclipse.core.expressions.definitions">
7202      <definition
7203            id="org.eclipse.egit.ui.egitOnlyResourceMapping">
7204         <with
7205               variable="activeMenuSelection">
7206            <iterate
7207                  ifEmpty="false"
7208                  operator="and">
7209               <and>
7210                  <adapt
7211                        type="org.eclipse.core.resources.mapping.ResourceMapping">
7212                     <test
7213                           args="org.eclipse.team.core.repository"
7214                           property="org.eclipse.core.resources.projectPersistentProperty"
7215                           value="org.eclipse.egit.core.GitProvider">
7216                     </test>
7217                  </adapt>
7218                  <not>
7219                     <adapt
7220                           type="org.eclipse.core.resources.IResource">
7221                     </adapt>
7222                  </not>
7223               </and>
7224            </iterate>
7225         </with>
7226      </definition>
7227   </extension>
7228   <extension
7229         point="org.eclipse.ui.services">
7230      <sourceProvider
7231            provider="org.eclipse.egit.ui.internal.selection.RepositorySourceProvider">
7232         <variable
7233               name="org.eclipse.egit.ui.currentRepository"
7234               priorityLevel="activeWorkbenchWindow">
7235         </variable>
7236      </sourceProvider>
7237   </extension>
7238   <extension
7239         point="org.eclipse.ui.startup">
7240      <startup
7241            class="org.eclipse.egit.ui.internal.clone.GitCloneDropAdapter">
7242      </startup>
7243   </extension>
7244 </plugin>