|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.dircache.DirCacheEditor.PathEdit org.eclipse.jgit.dircache.DirCacheEditor.DeletePath
public static final class DirCacheEditor.DeletePath
Deletes a single file entry from the index.
This deletion command removes only a single file at the given location,
but removes multiple stages (if present) for that path. To remove a
complete subtree use DirCacheEditor.DeleteTree
instead.
DirCacheEditor.DeleteTree
Constructor Summary | |
---|---|
DirCacheEditor.DeletePath(DirCacheEntry ent)
Create a new deletion command for an existing entry instance. |
|
DirCacheEditor.DeletePath(String entryPath)
Create a new deletion command by path name. |
Method Summary | |
---|---|
void |
apply(DirCacheEntry ent)
Apply the update to a single cache entry matching the path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirCacheEditor.DeletePath(String entryPath)
entryPath
- path of the file within the repository.public DirCacheEditor.DeletePath(DirCacheEntry ent)
ent
- entry instance to remove. Only the path of this entry is
actually considered during command evaluation.Method Detail |
---|
public void apply(DirCacheEntry ent)
DirCacheEditor.PathEdit
After apply is invoked the entry is added to the output table, and will be included in the new index.
apply
in class DirCacheEditor.PathEdit
ent
- the entry being processed. All fields are zeroed out if
the path is a new path in the index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |