public class

ForkCommandParameters

extends AbstractCommandParameters
java.lang.Object
   ↳ com.atlassian.bitbucket.util.BuilderSupport
     ↳ com.atlassian.bitbucket.scm.AbstractCommandParameters
       ↳ com.atlassian.bitbucket.scm.ForkCommandParameters

Class Overview

Describes the fork being created.

fork(RepositoryForkRequest) is used to create forks. That service creates the fork Repository in the database, and then calls fork(Repository, ForkCommandParameters) to create it on disk. As with other commands, the origin repository, which already exists both in the database and on disk, is provided as the first argument when creating the fork Command command. The fork repository, which only exists in the database, is provided in these parameters.

Summary

Nested Classes
class ForkCommandParameters.Builder  
[Expand]
Inherited Fields
From class com.atlassian.bitbucket.util.BuilderSupport
Public Methods
@Nonnull Repository getFork()
Retrieves the fork repository, which is expected to have already been created in the database and have a valid ID.
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.util.BuilderSupport
From class java.lang.Object

Public Methods

@Nonnull public Repository getFork ()

Retrieves the fork repository, which is expected to have already been created in the database and have a valid ID. The SCM will use this Repository to create the fork on disk and initialize it from its origin, which is supplied as the first parameter to fork(Repository, ForkCommandParameters) when creating the Command.

Returns
  • the fork repository, which exists in the database but not on disk