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