@Operation('clean') class CleanOp extends java.lang.Object
Remove untracked files from the working tree. Returns the list of file paths deleted.
| Type | Name and description |
|---|---|
boolean |
directoriestrue if untracked directories should also be deleted,
false (the default) otherwise |
boolean |
dryRuntrue if the files should be returned, but not deleted,
false (the default) otherwise |
boolean |
ignorefalse if files ignored by .gitignore should
also be deleted, true (the default) otherwise |
java.util.Set<java.lang.String> |
pathsThe paths to clean. |
| Constructor and description |
|---|
CleanOp
(Repository repo) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Set<java.lang.String> |
call() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
true if untracked directories should also be deleted,
false (the default) otherwise
true if the files should be returned, but not deleted,
false (the default) otherwise
false if files ignored by .gitignore should
also be deleted, true (the default) otherwise
The paths to clean. null if all paths should be included.
Groovy Documentation