Class PublishGitWorkTreeParameters
java.lang.Object
com.atlassian.bitbucket.scm.git.worktree.PublishGitWorkTreeParameters
Describes what ref to update when publishing a
GitWorkTree to its Repository, and what
RepositoryHookRequest to use when invoking the repository hooks before and
after publishing the refs.- Since:
- 7.14
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.user.Person
-
Method Details
-
getAuthor
@Nullable public com.atlassian.bitbucket.user.Person getAuthor()- Returns:
- the
authorto use for publishing. If a published ref update is recorded in a reflog, this author will be recorded in the reflog.
-
getBranch
- Returns:
- the branch to publish the work tree to
-
getExpectedHash
- Returns:
- the hash the
target branchis expected to be at. If the branch is currently at a different hash, publishing will fail. If equal to0000000000000000000000000000000000000000, publishing will only succeed if the branch does not yet exist. Ifnull, the target branch will be updated regardless of its current value.
-
getHookInvoker
- Returns:
- the
GitWorkTreeRepositoryHookInvokerused toinvoke repository hooksbefore and after publishing the refs from the work tree to the repository
-
getTimeout
- Returns:
- an optional timeout to apply to the publishing of refs. If no timeout is provided, the system default is used.
-