| Modifier and Type | Field and Description |
|---|---|
| private CloneCommand. | |
| private boolean | |
| private boolean | |
| private FetchCommand. | |
| private ProgressMonitor | |
| private final Collection | |
| private MergeStrategy |
| Access | Constructor and Description |
|---|---|
| public | SubmoduleUpdateCommand(Repository
a repo)org. object.Constructor for SubmoduleUpdateCommand. |
| Modifier and Type | Method and Description |
|---|---|
| public SubmoduleUpdateCommand | |
| public Collection | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private String | |
| private Repository | |
| private static String | |
| private static void | |
| public SubmoduleUpdateCommand | Returns: thisthe callback callbackSet status callback for submodule clone operation. |
| public SubmoduleUpdateCommand | Returns: this commandwhether to fetch the submodules before we update them fetch)Whether to fetch the submodules before we update them. |
| public SubmoduleUpdateCommand | Returns: thisthe callback callbackSet status callback for submodule fetch operation. |
| public SubmoduleUpdateCommand | Returns: this commanda monitor)org. object.The progress monitor associated with the clone operation. |
| public SubmoduleUpdateCommand | Returns: thisThe merge strategy to use during this update operation. strategy)Setter for the field |
| private static boolean |
| callback | back to summary |
|---|---|
| private CloneCommand. | |
| clonedRestored | back to summary |
|---|---|
| private boolean clonedRestored | |
| fetch | back to summary |
|---|---|
| private boolean fetch | |
| fetchCallback | back to summary |
|---|---|
| private FetchCommand. | |
| monitor | back to summary |
|---|---|
| private ProgressMonitor monitor | |
| paths | back to summary |
|---|---|
| private final Collection<String> paths | |
| strategy | back to summary |
|---|---|
| private MergeStrategy strategy | |
| SubmoduleUpdateCommand | back to summary |
|---|---|
| public SubmoduleUpdateCommand(Repository repo) Constructor for SubmoduleUpdateCommand.
| |
| addPath | back to summary |
|---|---|
| public SubmoduleUpdateCommand addPath(String path) Add repository-relative submodule path to initialize
| |
| call | back to summary |
|---|---|
| public Collection Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command Execute the SubmoduleUpdateCommand command.
| |
| determineUpdateMode | back to summary |
|---|---|
| private String determineUpdateMode(String mode) | |
| getOrCloneSubmodule | back to summary |
|---|---|
| private Repository getOrCloneSubmodule(SubmoduleWalk generator, String url) throws IOException, GitAPIException | |
| getRelativePath | back to summary |
|---|---|
| private static String getRelativePath(File gitDir, File workingTree) | |
| restoreSubmodule | back to summary |
|---|---|
| private static void restoreSubmodule(File gitDir, File workingTree) throws IOException | |
| setCallback | back to summary |
|---|---|
| public SubmoduleUpdateCommand setCallback(CloneCommand. Set status callback for submodule clone operation.
| |
| setFetch | back to summary |
|---|---|
| public SubmoduleUpdateCommand setFetch(boolean fetch) Whether to fetch the submodules before we update them. By default, this
is set to
| |
| setFetchCallback | back to summary |
|---|---|
| public SubmoduleUpdateCommand setFetchCallback(FetchCommand. Set status callback for submodule fetch operation.
| |
| setProgressMonitor | back to summary |
|---|---|
| public SubmoduleUpdateCommand setProgressMonitor(final ProgressMonitor monitor) The progress monitor associated with the clone operation. By default,
this is set to
| |
| setStrategy | back to summary |
|---|---|
| public SubmoduleUpdateCommand setStrategy(MergeStrategy strategy) Setter for the field
| |
| submoduleExists | back to summary |
|---|---|
| private static boolean submoduleExists(File gitDir) | |