This will remove the module(s) from the working tree, but won't affect .git/modules.
| Modifier and Type | Class and Description |
|---|---|
| public static class | SubmoduleDeinitCommand.
The user tried to deinitialize a submodule that doesn't exist in the index. |
| public static enum | SubmoduleDeinitCommand.
The effect of a submodule deinit command for a given path |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Collection |
| Access | Constructor and Description |
|---|---|
| public | SubmoduleDeinitCommand(Repository
repository this command works on repo)Constructor of SubmoduleDeinitCommand |
| Modifier and Type | Method and Description |
|---|---|
| public SubmoduleDeinitCommand | |
| public Collection | Returns: the set of repositories successfully deinitialized.Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| private SubmoduleDeinitCommand. | Returns: status of the commandused to walk commit graph revWalk, String path of the submodule path)Check if a submodule is dirty. |
| private void | |
| public SubmoduleDeinitCommand | Returns: thisexecute the command forcefully if there are local modifications force)If |
| private boolean | Returns: true if path exists and is a submodule in index,
false otherwisepath of the submodule path)Check if this path is a submodule by checking the index, which is what git submodule deinit checks. |
| force | back to summary |
|---|---|
| private boolean force | |
| paths | back to summary |
|---|---|
| private final Collection<String> paths | |
| SubmoduleDeinitCommand | back to summary |
|---|---|
| public SubmoduleDeinitCommand(Repository repo) Constructor of SubmoduleDeinitCommand
| |
| addPath | back to summary |
|---|---|
| public SubmoduleDeinitCommand addPath(String path) Add repository-relative submodule path to deinitialize
| |
| 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
| |
| checkDirty | back to summary |
|---|---|
| private SubmoduleDeinitCommand. Check if a submodule is dirty. A submodule is dirty if there are local changes to the submodule relative to its HEAD, including untracked files. It is also dirty if the HEAD of the submodule does not match the value in the parent repo's index or HEAD.
| |
| deinit | back to summary |
|---|---|
| private void deinit(String path) throws IOException Recursively delete the *contents* of path, but leave path as an empty directory
| |
| setForce | back to summary |
|---|---|
| public SubmoduleDeinitCommand setForce(boolean force) If
| |
| submoduleExists | back to summary |
|---|---|
| private boolean submoduleExists(String path) throws IOException Check if this path is a submodule by checking the index, which is what git submodule deinit checks.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | NoSuchSubmoduleException(String
path of non-existing submodule path)Constructor of NoSuchSubmoduleException |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| NoSuchSubmoduleException | back to summary |
|---|---|
| public NoSuchSubmoduleException(String path) Constructor of NoSuchSubmoduleException
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SubmoduleDeinitCommand. | ALREADY_DEINITIALIZED
The submodule was not initialized in the first place |
| public static final SubmoduleDeinitCommand. | DIRTY
The submodule had local changes and force was false |
| public static final SubmoduleDeinitCommand. | FORCED
The submodule had local changes, but was deinitialized successfully |
| public static final SubmoduleDeinitCommand. | SUCCESS
The submodule was deinitialized |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SubmoduleDeinitCommand. | |
| public static SubmoduleDeinitCommand. |
| ALREADY_DEINITIALIZED | back to summary |
|---|---|
| public static final SubmoduleDeinitCommand. The submodule was not initialized in the first place | |
| DIRTY | back to summary |
|---|---|
| public static final SubmoduleDeinitCommand. The submodule had local changes and force was false | |
| FORCED | back to summary |
|---|---|
| public static final SubmoduleDeinitCommand. The submodule had local changes, but was deinitialized successfully | |
| SUCCESS | back to summary |
|---|---|
| public static final SubmoduleDeinitCommand. The submodule was deinitialized | |
| SubmoduleDeinitStatus | back to summary |
|---|---|
| private SubmoduleDeinitStatus() | |
| valueOf | back to summary |
|---|---|
| public static SubmoduleDeinitCommand. | |
| values | back to summary |
|---|---|
| public static SubmoduleDeinitCommand. | |