org.eclipse.jgit.api
Class RmCommand
java.lang.Object
org.eclipse.jgit.api.GitCommand<DirCache>
org.eclipse.jgit.api.RmCommand
- All Implemented Interfaces:
- Callable<DirCache>
public class RmCommand
- extends GitCommand<DirCache>
A class used to execute a Rm command. It has setters for all
supported options and arguments of this command and a call() method
to finally execute the command. Each instance of this class should only be
used for one invocation of the command (means: one call to call())
- See Also:
- Git documentation about Rm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RmCommand
public RmCommand(Repository repo)
- Parameters:
repo -
addFilepattern
public RmCommand addFilepattern(String filepattern)
- Parameters:
filepattern - File to remove.
- Returns:
this
call
public DirCache call()
throws NoFilepatternException
- Executes the
Rm command. Each instance of this class should only
be used for one invocation of the command. Don't call this method twice
on an instance.
- Returns:
- the DirCache after Rm
- Throws:
NoFilepatternException
Copyright © 2011. All Rights Reserved.