Java org.eclipse.jgit.lib TreeFormatter fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jgit.lib TreeFormatter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jgit.lib TreeFormatter.

The text is from its open source code.

Constructor

TreeFormatter()
Create an empty formatter with a default buffer size.

Method

voidappend(String name, FileMode mode, AnyObjectId id)
Append any entry to the tree.
voidappend(byte[] name, FileMode mode, AnyObjectId id)
Append any entry to the tree.
voidappend(String name, RevCommit commit)
Add a link to a submodule commit, mode is org.eclipse.jgit.lib.FileMode#GITLINK .
voidappend(String name, RevTree tree)
Add a subtree, mode is org.eclipse.jgit.lib.FileMode#TREE .
voidappend(String name, RevBlob blob)
Add a regular file, mode is org.eclipse.jgit.lib.FileMode#REGULAR_FILE .
ObjectIdinsertTo(ObjectInserter ins)
Insert this tree and obtain its ObjectId.
byte[]toByteArray()
Copy this formatter's buffer into a byte array.