in.specmatic.core.git.GitCommand.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of specmatic-core Show documentation
Show all versions of specmatic-core Show documentation
Turn your contracts into executable specifications. Contract Driven Development - Collaboratively Design & Independently Deploy MicroServices & MicroFrontends.
Deprecation Notice for group ID "in.specmatic"
******************************************************************************************************
Updates for "specmatic-core" will no longer be available under the deprecated group ID "in.specmatic".
Please update your dependencies to use the new group ID "io.specmatic".
******************************************************************************************************
package `in`.specmatic.core.git
import java.io.File
interface GitCommand {
val workingDirectory: String
fun add(): SystemGit
fun add(relativePath: String): SystemGit
fun commit(): SystemGit
fun push(): SystemGit
fun pull(): SystemGit
fun resetHard(): SystemGit
fun resetMixed(): SystemGit
fun mergeAbort(): SystemGit
fun checkout(branchName: String): SystemGit
fun merge(branchName: String): SystemGit
fun clone(gitRepositoryURI: String, cloneDirectory: File): SystemGit
fun gitRoot(): String
fun show(treeish: String, relativePath: String): String
fun workingDirectoryIsGitRepo(): Boolean
fun getChangedFiles(): List
fun relativeGitPath(newerContractPath: String): Pair
fun fileIsInGitDir(newerContractPath: String): Boolean
fun inGitRootOf(contractPath: String): GitCommand
fun shallowClone(gitRepositoryURI: String, cloneDirectory: File): SystemGit
fun exists(treeish: String, relativePath: String): Boolean
fun getCurrentBranch(): String
fun statusPorcelain(): String
fun fetch(): String
fun revisionsBehindCount(): Int
fun getRemoteUrl(name: String = "origin"): String
fun checkIgnore(path: String): String
fun getFilesChangeInCurrentBranch(): List
fun getFileInTheDefaultBranch(fileName: String, currentBranch: String): File?
fun currentBranch(): String {
return ""
}
fun defaultBranch(): String {
return ""
}
fun detachedHEAD(): String {
return ""
}
}