All Downloads are FREE. Search and download functionalities are using the official Maven repository.

application.PartialCommitFetch.kt Maven / Gradle / Ivy

There is a newer version: 1.3.39
Show newest version
package application

import `in`.specmatic.core.git.GitCommand
import `in`.specmatic.core.utilities.exceptionCauseMessage

val getFileContentAtSpecifiedCommit = {
    gitRoot: GitCommand -> { relativeContractPath: String -> { contractPath: String -> { commit: String ->
    try {
        Outcome(gitRoot.show(commit, relativeContractPath).trim())
    } catch (e: Throwable) {
        Outcome(null, "Could not load ${commit}:${contractPath} because of error:\n${exceptionCauseMessage(e)}")
    }
} } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy