abstract class WriteGitRepository extends GitRepository with FileSystemLocks
Handle all providers and authentication - by ssh and token. Authentication type is recognized and applied basing on given ProjectRequest.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- WriteGitRepository
- FileSystemLocks
- GitRepository
- ContextLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new WriteGitRepository(repositoryKeysLocation: String, repositoryLocation: String)(implicit executionContext: ExecutionContext)
- repositoryKeysLocation
- used for ssh access
Abstract Value Members
- abstract def updateRepository(projectRequest: ProjectRequest)(implicit logContext: ProjectLogContext): Unit
Update repository without submodules.
- abstract def withRepository[T](project: ProjectRequest, forceUpdate: Boolean = false)(block: (File) => T)(implicit logContext: ProjectLogContext): T
- Attributes
- protected[git]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def changedFiles(dir: File, currentCommit: String)(implicit logContext: ProjectLogContext): Seq[String]
- def cleanProjectDir(projectUrl: String)(implicit logContext: ProjectLogContext): Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def cloneOptions(recursive: Boolean): Seq[String]
- Attributes
- protected[repository]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findCommonAncestor(project: ProjectRequest, source: BranchRequest, destination: BranchRequest)(implicit logContext: ProjectLogContext): Option[CommitRequest]
- def generateProjectData(values: Map[String, String])(implicit logContext: ProjectLogContext): RepositoryData
- def getAllCommits(project: ProjectRequest)(implicit logContext: ProjectLogContext): List[GitCommitWithIndex]
- def getBranchCommits(project: ProjectRequest, branches: Seq[BranchRequest])(implicit logContext: ProjectLogContext): List[GitCommit]
Fetches a list of Git commits for the specified branches in a given project.
Fetches a list of Git commits for the specified branches in a given project.
- project
The project request, which includes details about the project such as its URL.
- branches
A sequence of branch requests for which commits are to be retrieved.
- returns
A list of GitCommit instances, each representing a commit from the requested branches.
- def getBranchCommits(project: ProjectRequest, branch: BranchRequest, limit: CommitRequest)(implicit logContext: ProjectLogContext): List[CommitRequest]
- def getBranchCommits(project: ProjectRequest, branch: BranchRequest, limit: Option[Int] = None)(implicit logContext: ProjectLogContext): List[GitCommit]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCommitDiff(dir: File, sourceCommit: CommitRequest, destinationCommits: Seq[String], slf: Set[String])(implicit logContext: ProjectLogContext): CommitDiff
- def getFileContents(dir: File, commit: CommitRequest, filename: String)(implicit logContext: ProjectLogContext): GitFileContents
- def getPullRequestDiff(dir: File, source: CommitRequest, destination: String, slf: Set[String])(implicit logContext: ProjectLogContext): CommitDiff
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listAllCommits(dir: File)(implicit logContext: ProjectLogContext): List[GitCommitWithIndex]
- def listFiles(dir: File, commit: String, maxFileSizeBytesOpt: Option[Int] = Option.empty)(implicit logContext: ProjectLogContext): GitListResult
- def lock[A](file: File, maxTime: Long = 1000 * 60 * 60)(method: (Lock) => A): A
- Definition Classes
- FileSystemLocks
- lazy val logger: ContextAwareLogger
- Attributes
- protected
- Definition Classes
- ContextLogging
- Annotations
- @transient()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pathPrefix: String
- Attributes
- protected[repository]
- def processProjectUrl(project: ProjectRequest)(implicit logContext: ProjectLogContext): String
- Attributes
- protected
- Definition Classes
- GitRepository
- def pullChanges(dir: File, request: ProjectRequest)(implicit logContext: ProjectLogContext): Unit
- Attributes
- protected
- def pullChangesOrClone(project: ProjectRequest, projectDir: File, forceUpdate: Boolean, cloneSubmodules: Boolean)(implicit l: Lock, logContext: ProjectLogContext): File
- Attributes
- protected
- def pullChangesOrClone(projectReq: ProjectRequest, projectDir: File, cloneSubmodules: Boolean)(implicit l: Lock, logContext: ProjectLogContext): Unit
- Attributes
- protected
- val repositoryKeysLocation: String
- val repositoryLocation: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def wrapCommandWithAuthorization(request: ProjectRequest, gitCommand: Seq[String])(implicit logContext: ProjectLogContext): CommandWithParam
- Attributes
- protected
- Definition Classes
- GitRepository