public class SubmoduleDeinitCommand extends GitCommand<Collection<SubmoduleDeinitResult>>
This will remove the module(s) from the working tree, but won't affect .git/modules.
Modifier and Type | Class and Description |
---|---|
static class |
SubmoduleDeinitCommand.NoSuchSubmoduleException
The user tried to deinitialize a submodule that doesn't exist in the
index.
|
static class |
SubmoduleDeinitCommand.SubmoduleDeinitStatus
The effect of a submodule deinit command for a given path
|
repo
Constructor and Description |
---|
SubmoduleDeinitCommand(Repository repo)
Constructor of SubmoduleDeinitCommand
|
Modifier and Type | Method and Description |
---|---|
SubmoduleDeinitCommand |
addPath(String path)
Add repository-relative submodule path to deinitialize
|
Collection<SubmoduleDeinitResult> |
call() |
SubmoduleDeinitCommand |
setForce(boolean force)
If
true , call() will deinitialize modules with local changes;
else it will refuse to do so. |
checkCallable, getRepository, setCallable
public SubmoduleDeinitCommand(Repository repo)
repo
- public Collection<SubmoduleDeinitResult> call() throws GitAPIException
Execute the command
call
in interface Callable<Collection<SubmoduleDeinitResult>>
call
in class GitCommand<Collection<SubmoduleDeinitResult>>
SubmoduleDeinitCommand.NoSuchSubmoduleException
- if any of the submodules which we might want to deinitialize
don't existGitAPIException
public SubmoduleDeinitCommand addPath(String path)
path
- (with /
as separator)public SubmoduleDeinitCommand setForce(boolean force)
true
, call() will deinitialize modules with local changes;
else it will refuse to do so.force
- this
Copyright © 2020 Eclipse JGit Project. All rights reserved.