Class GitSCMOperator
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.enterprisedomain.classmaker.impl.SCMOperatorImpl<org.eclipse.jgit.api.Git>
org.enterprisedomain.classmaker.scm.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>
-
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 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
Fields inherited from interface org.enterprisedomain.classmaker.SCMOperator
MASTER_BRANCH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
checkoutOrphan
(String branch, long timestamp) long
decodeTimestamp
(String commitMessage) org.osgi.framework.Version
decodeVersion
(String commitMessage) void
encodeCommitMessage
(State state) org.eclipse.jgit.api.Git
static org.eclipse.jgit.api.Git
getRepositorySCM
(File dir, SCMRegistry<org.eclipse.jgit.api.Git> scmRegistry) void
Methods inherited from class org.enterprisedomain.classmaker.impl.SCMOperatorImpl
basicGetRegistry, eGet, eIsSet, eSet, eUnset, getProjectName, getRegistry, setProjectName, setRegistry, toString
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 Details
-
GitSCMOperator
public GitSCMOperator()
-
-
Method Details
-
getRepositorySCM
Description copied from class:SCMOperatorImpl
- Specified by:
getRepositorySCM
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
getRepositorySCM
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
Exception
-
getRepositorySCM
public static org.eclipse.jgit.api.Git getRepositorySCM(File dir, SCMRegistry<org.eclipse.jgit.api.Git> scmRegistry) throws Exception - Throws:
Exception
-
ungetRepositorySCM
Description copied from class:SCMOperatorImpl
- Specified by:
ungetRepositorySCM
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
ungetRepositorySCM
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
Exception
-
add
Description copied from class:SCMOperatorImpl
- Specified by:
add
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
add
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
Exception
-
commit
Description copied from class:SCMOperatorImpl
- Specified by:
commit
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
commit
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Throws:
Exception
-
decodeTimestamp
Description copied from class:SCMOperatorImpl
- Specified by:
decodeTimestamp
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
decodeTimestamp
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
decodeVersion
Description copied from class:SCMOperatorImpl
- Specified by:
decodeVersion
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
decodeVersion
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
encodeCommitMessage
Description copied from class:SCMOperatorImpl
- Specified by:
encodeCommitMessage
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
encodeCommitMessage
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
deleteProject
public void deleteProject()Description copied from class:SCMOperatorImpl
- Specified by:
deleteProject
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
deleteProject
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
-
checkout
Description copied from class:SCMOperatorImpl
- Specified by:
checkout
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
checkout
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Parameters:
branch
- the branch namecommitId
- the commit identifier- Throws:
Exception
-
checkoutOrphan
Description copied from class:SCMOperatorImpl
- Specified by:
checkoutOrphan
in interfaceSCMOperator<org.eclipse.jgit.api.Git>
- Specified by:
checkoutOrphan
in classSCMOperatorImpl<org.eclipse.jgit.api.Git>
- Parameters:
branch
- the branch name- Throws:
Exception
-