Package org.omegat.core.team2
Class RebaseAndCommit
- java.lang.Object
-
- org.omegat.core.team2.RebaseAndCommit
-
public final class RebaseAndCommit extends java.lang.Object
Core for rebase and commit files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RebaseAndCommit.IRebase
static class
RebaseAndCommit.Prepared
Info about prepared file.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
VERSION_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
commitPrepared(RebaseAndCommit.Prepared prep, RemoteRepositoryProvider provider, java.lang.String possibleHeadVersion)
Commit later.static RebaseAndCommit.Prepared
prepare(RemoteRepositoryProvider provider, java.io.File projectDir, java.lang.String path)
Load BASE and HEAD from remote repository into temp storage for future rebase.static void
rebaseAndCommit(RebaseAndCommit.Prepared prep, RemoteRepositoryProvider provider, java.io.File projectDir, java.lang.String path, RebaseAndCommit.IRebase rebaser)
-
-
-
Field Detail
-
VERSION_PREFIX
public static final java.lang.String VERSION_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
prepare
public static RebaseAndCommit.Prepared prepare(RemoteRepositoryProvider provider, java.io.File projectDir, java.lang.String path) throws java.lang.Exception
Load BASE and HEAD from remote repository into temp storage for future rebase.- Throws:
java.lang.Exception
-
rebaseAndCommit
public static void rebaseAndCommit(RebaseAndCommit.Prepared prep, RemoteRepositoryProvider provider, java.io.File projectDir, java.lang.String path, RebaseAndCommit.IRebase rebaser) throws java.lang.Exception
- Throws:
java.lang.Exception
-
commitPrepared
public static java.lang.String commitPrepared(RebaseAndCommit.Prepared prep, RemoteRepositoryProvider provider, java.lang.String possibleHeadVersion) throws java.lang.Exception
Commit later.- Throws:
java.lang.Exception
-
-