<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
   <extension point="org.eclipse.core.runtime.preferences">
      <initializer class="org.eclipse.egit.core.GitCorePreferenceInitializer"/>
   </extension>

  <extension point="org.eclipse.team.core.repository">
	<repository
       class="org.eclipse.egit.core.GitProvider"
       id="org.eclipse.egit.core.GitProvider"
       typeClass="org.eclipse.egit.core.internal.GitRepositoryProviderType">
	</repository>
  </extension>
  <extension
        point="org.eclipse.team.core.ignore">
     <ignore
           enabled="true"
           pattern=".git"/>
  </extension>
</plugin>

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
   <extension point="org.eclipse.core.runtime.preferences">
      <initializer class="org.eclipse.egit.core.GitCorePreferenceInitializer"/>
   </extension>

  <extension point="org.eclipse.team.core.repository">
	<repository
       class="org.eclipse.egit.core.GitProvider"
       id="org.eclipse.egit.core.GitProvider"
       typeClass="org.eclipse.egit.core.internal.GitRepositoryProviderType">
	</repository>
  </extension>
  <extension
        point="org.eclipse.team.core.ignore">
     <ignore
           enabled="true"
           pattern=".git"/>
     <ignore
           enabled="true"
           pattern="*/.git/*"/>
  </extension>
</plugin>

Mark all .git dir's as ignored
Mark all .git dir's as ignored

The Team Ignore extension point checks given ignore pattern against file
name or whole workspace relative path. Sometimes we need to ignore files
like .git/index that won't match using old pattern. In such cases a new
pattern needs to be added to match files inside .git folder.

The Team Ignore extension point will expand resource path into workspace
relative path when it finds '/' character in pattern. Such expanded path
will contain project name, therefore we need to add '*/.git/*' pattern
into ignored ones.

Bug: 334369
Change-Id: I12641c4d423960ca0e7d86c2cd867e0c93919622
Signed-off-by: Dariusz Luksza <d9c42035ad9447bda4101be2f02a7db3fa874023@luksza.org>
Signed-off-by: Matthias Sohn <446760a3fbea85cd5f8f4f5c3de304fe3a38014f@sap.com>