| Namespace | http://www.mulesoft.org/schema/mule/git |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/git/2.0/mule-git.xsd |
| Version | 2.0 |
| Minimum Mule Version | 3.2 |
GitConnector is a Cloud Connector Facade for GIT SCM.
It allows to
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add file contents to the index
| |||||||||||
Checkout a local branch or create a local branch from a remote branch
or | |||||||||||
Clone a repository into a new directory
| |||||||||||
Record changes to the repository
| |||||||||||
Create a local branch
| |||||||||||
Delete local branch
| |||||||||||
Fetch changes from another repository
| |||||||||||
Fetch from and merge with another repository or a local branch
| |||||||||||
Update remote refs along with associated objects
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:git="http://www.mulesoft.org/schema/mule/git"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/git
http://www.mulesoft.org/schema/mule/git/2.0/mule-git.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necesary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Optional. Give a name to this configuration so it can be later referenced. | |||||||
| Directory of your git repository | |||||||||||
Add file contents to the index
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| File to add content from. Also a leading directory name (e.g. dir to add dir/file1 and dir/file2) can be given to add all files in the directory, recursively. |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Checkout a local branch or create a local branch from a remote branch
INCLUDE_ERROR
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name of the branch to checkout |
||
| Optional. If specified creates a new branch pointing to this startPoint |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Clone a repository into a new directory
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| The (possibly remote) repository to clone from. |
||
| Optional. True if you want a bare Git repository, false otherwise. |
||
| Optional. Name of the remote to keep track of the upstream repository. |
||
| Optional. Name of the local branch into which the remote will be cloned. |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Record changes to the repository
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Commit message |
||
| Name of the person performing this commit |
||
| Email of the person performing this commit |
||
| Optional. Name of the author of the changes to commit |
||
| Optional. Email of the author of the changes to commit |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Create a local branch
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name of the new branch |
||
| Optional. If true and the branch with the given name already exists, the start-point of an existing branch will be set to a new start-point; if false, the existing branch will not be changed. |
||
| Optional. The new branch head will point to this commit. It may be given as a branch name, a commit-id, or a tag. If this option is omitted, the current HEAD will be used instead. |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Delete local branch
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Name of the branch to delete |
||
| If false a check will be performed whether the branch to be deleted is already merged into the current branch and deletion will be refused in this case |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Fetch changes from another repository
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Fetch from and merge with another repository or a local branch
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |
Update remote refs along with associated objects
INCLUDE_ERROR
| Optional. Specify which configuration to use. | ||
| Optional. The remote (uri or name) used for the push operation. |
||
| Optional. Sets the force preference for push operation |
||
| Optional. Name of the directory to use for git repository
|
||
| 1 | Optional. Specify how many times this operation can be retried automatically |