Class GitSCMOperator

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, SCMOperator<org.eclipse.jgit.api.Git>

    public class GitSCMOperator
    extends SCMOperatorImpl<org.eclipse.jgit.api.Git>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject

        org.eclipse.emf.ecore.InternalEObject.EStore
    • Field Summary

      • Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        ELAST_EOBJECT_FLAG
      • Fields inherited from interface org.eclipse.emf.ecore.InternalEObject

        EOPPOSITE_FEATURE_BASE
    • Constructor Summary

      Constructors 
      Constructor Description
      GitSCMOperator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String filepattern)
      void checkout​(java.lang.String branch, java.lang.String commitId, boolean forced)
      void checkoutOrphan​(java.lang.String branch, long timestamp)
      java.lang.String commit​(java.lang.String commitMessage)
      long decodeTimestamp​(java.lang.String commitMessage)
      org.osgi.framework.Version decodeVersion​(java.lang.String commitMessage)
      void deleteProject()
      java.lang.String encodeCommitMessage​(State state)
      org.eclipse.jgit.api.Git getRepositorySCM()
      static org.eclipse.jgit.api.Git getRepositorySCM​(java.io.File dir, SCMRegistry<org.eclipse.jgit.api.Git> scmRegistry)  
      void ungetRepositorySCM()
      • Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl

        eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
      • Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl

        eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
      • Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

        eNotificationRequired, eNotify
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.emf.ecore.EObject

        eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
      • Methods inherited from interface org.eclipse.emf.ecore.InternalEObject

        eNotificationRequired
      • Methods inherited from interface org.eclipse.emf.common.notify.Notifier

        eAdapters, eDeliver, eNotify, eSetDeliver
    • Constructor Detail

      • GitSCMOperator

        public GitSCMOperator()
    • Method Detail

      • getRepositorySCM

        public static org.eclipse.jgit.api.Git getRepositorySCM​(java.io.File dir,
                                                                SCMRegistry<org.eclipse.jgit.api.Git> scmRegistry)
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • add

        public void add​(java.lang.String filepattern)
                 throws java.lang.Exception
        Description copied from class: SCMOperatorImpl
        Specified by:
        add in interface SCMOperator<org.eclipse.jgit.api.Git>
        Specified by:
        add in class SCMOperatorImpl<org.eclipse.jgit.api.Git>
        Throws:
        java.lang.Exception
      • commit

        public java.lang.String commit​(java.lang.String commitMessage)
                                throws java.lang.Exception
        Description copied from class: SCMOperatorImpl
        Specified by:
        commit in interface SCMOperator<org.eclipse.jgit.api.Git>
        Specified by:
        commit in class SCMOperatorImpl<org.eclipse.jgit.api.Git>
        Throws:
        java.lang.Exception
      • checkout

        public void checkout​(java.lang.String branch,
                             java.lang.String commitId,
                             boolean forced)
                      throws java.lang.Exception
        Description copied from class: SCMOperatorImpl
        Specified by:
        checkout in interface SCMOperator<org.eclipse.jgit.api.Git>
        Specified by:
        checkout in class SCMOperatorImpl<org.eclipse.jgit.api.Git>
        Parameters:
        branch - the branch name
        commitId - the commit identifier
        Throws:
        java.lang.Exception
      • checkoutOrphan

        public void checkoutOrphan​(java.lang.String branch,
                                   long timestamp)
                            throws java.lang.Exception
        Description copied from class: SCMOperatorImpl
        Specified by:
        checkoutOrphan in interface SCMOperator<org.eclipse.jgit.api.Git>
        Specified by:
        checkoutOrphan in class SCMOperatorImpl<org.eclipse.jgit.api.Git>
        Parameters:
        branch - the branch name
        Throws:
        java.lang.Exception