public class WriteContext extends Object
| Constructor and Description |
|---|
WriteContext(org.eclipse.jgit.api.Git git,
File rootDir,
File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(File file)
Adds the given file to git
|
org.eclipse.jgit.lib.PersonIdent |
getAuthor() |
File |
getFile() |
org.eclipse.jgit.api.Git |
getGit() |
String |
getMessage() |
File |
getRootDir() |
boolean |
isRequiresCommit() |
void |
setAuthor(org.eclipse.jgit.lib.PersonIdent author) |
void |
setMessage(String message) |
void |
setRequiresCommit(boolean requiresCommit) |
public void addFile(File file) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic org.eclipse.jgit.api.Git getGit()
public File getRootDir()
public File getFile()
public boolean isRequiresCommit()
public void setRequiresCommit(boolean requiresCommit)
public org.eclipse.jgit.lib.PersonIdent getAuthor()
public void setAuthor(org.eclipse.jgit.lib.PersonIdent author)
public String getMessage()
public void setMessage(String message)
Copyright © 2019 JBoss by Red Hat. All rights reserved.