public class RmCommand extends GitCommand<DirCache>
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()
)repo
Constructor and Description |
---|
RmCommand(Repository repo) |
Modifier and Type | Method and Description |
---|---|
RmCommand |
addFilepattern(java.lang.String filepattern) |
DirCache |
call()
Executes the
Rm command. |
checkCallable, getRepository, setCallable
public RmCommand(Repository repo)
repo
- public RmCommand addFilepattern(java.lang.String filepattern)
filepattern
- File to remove.this
public DirCache call() throws GitAPIException, NoFilepatternException
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.call
in interface java.util.concurrent.Callable<DirCache>
call
in class GitCommand<DirCache>
GitAPIException
- or subclass thereof when an error occursNoFilepatternException
Copyright © 2012. All Rights Reserved.