public class TestRepository.CommitBuilder extends Object
public TestRepository.CommitBuilder parent(RevCommit p) throws Exception
p - parent commitExceptionpublic TestRepository.CommitBuilder noParents()
public TestRepository.CommitBuilder noFiles()
public TestRepository.CommitBuilder setTopLevelTree(ObjectId treeId)
treeId - the top level treepublic TestRepository.CommitBuilder add(String path, String content) throws Exception
path - path of the filecontent - the file contentExceptionpublic TestRepository.CommitBuilder add(String path, RevBlob id) throws Exception
path - path of the fileid - blob for this fileExceptionpublic TestRepository.CommitBuilder edit(DirCacheEditor.PathEdit edit)
edit - the index record updatepublic TestRepository.CommitBuilder rm(String path)
path - path of the filepublic TestRepository.CommitBuilder message(String m)
m - the messagepublic String message()
public TestRepository.CommitBuilder tick(int secs)
secs - number of secondspublic TestRepository.CommitBuilder ident(PersonIdent ident)
ident - identity to setpublic TestRepository.CommitBuilder author(PersonIdent a)
a - the author's identitypublic PersonIdent author()
public TestRepository.CommitBuilder committer(PersonIdent c)
c - the committer identitypublic PersonIdent committer()
public TestRepository.CommitBuilder insertChangeId()
public TestRepository.CommitBuilder insertChangeId(String c)
c - changeIdpublic RevCommit create() throws Exception
Exception - if creation failedpublic TestRepository.CommitBuilder child() throws Exception
ExceptionCopyright © 2019 Eclipse JGit Project. All rights reserved.