|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.api.GitCommand<java.util.Set<java.lang.String>>
org.eclipse.jgit.api.CleanCommand
public class CleanCommand
Remove untracked files from the working tree
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jgit.api.GitCommand |
|---|
repo |
| Constructor Summary | |
|---|---|
protected |
CleanCommand(Repository repo)
|
| Method Summary | |
|---|---|
java.util.Set<java.lang.String> |
call()
Executes the clean command with all the options and parameters
collected by the setter methods of this class. |
CleanCommand |
setCleanDirectories(boolean dirs)
If dirs is set, in addition to files, also clean directories. |
CleanCommand |
setDryRun(boolean dryRun)
If dryRun is set, the paths in question will not actually be deleted. |
CleanCommand |
setIgnore(boolean ignore)
If ignore is set, don't report/clean files/directories that are ignored by a .gitignore. |
CleanCommand |
setPaths(java.util.Set<java.lang.String> paths)
If paths are set, only these paths are affected by the cleaning. |
| Methods inherited from class org.eclipse.jgit.api.GitCommand |
|---|
checkCallable, getRepository, setCallable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CleanCommand(Repository repo)
repo - | Method Detail |
|---|
public java.util.Set<java.lang.String> call()
throws NoWorkTreeException,
GitAPIException
clean command with all the options and parameters
collected by the setter methods of this class. Each instance of this
class should only be used for one invocation of the command (means: one
call to call())
call in interface java.util.concurrent.Callable<java.util.Set<java.lang.String>>call in class GitCommand<java.util.Set<java.lang.String>>GitAPIException
NoWorkTreeExceptionpublic CleanCommand setPaths(java.util.Set<java.lang.String> paths)
paths - the paths to set
thispublic CleanCommand setDryRun(boolean dryRun)
dryRun - whether to do a dry run or not
thispublic CleanCommand setCleanDirectories(boolean dirs)
dirs - whether to clean directories too, or only files.
thispublic CleanCommand setIgnore(boolean ignore)
ignore - whether to respect .gitignore or not.
this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||