ComparableFileTreeEntry, GitlinkTreeEntry, SymlinkTreeEntry, Tree@Deprecated public abstract class TreeEntry extends Object implements Comparable
TreeWalk.forPath(Repository, String, org.eclipse.jgit.revwalk.RevTree).
To lookup information about multiple paths at once, use a
TreeWalk and obtain the current entry's
information from its getter methods.| Modifier | Constructor | Description |
|---|---|---|
protected |
TreeEntry(Tree myParent,
ObjectId myId,
byte[] myNameUTF8) |
Deprecated.
Construct a named tree entry.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(Object o) |
Deprecated.
|
void |
delete() |
Deprecated.
Delete this entry.
|
void |
detachParent() |
Deprecated.
Detach this entry from it's parent.
|
String |
getFullName() |
Deprecated.
|
byte[] |
getFullNameUTF8() |
Deprecated.
|
ObjectId |
getId() |
Deprecated.
|
abstract FileMode |
getMode() |
Deprecated.
|
String |
getName() |
Deprecated.
|
byte[] |
getNameUTF8() |
Deprecated.
|
Tree |
getParent() |
Deprecated.
|
Repository |
getRepository() |
Deprecated.
|
boolean |
isModified() |
Deprecated.
|
static int |
lastChar(TreeEntry treeEntry) |
Deprecated.
Helper for accessing tree/blob methods.
|
void |
rename(byte[] n) |
Deprecated.
Rename this entry.
|
void |
rename(String n) |
Deprecated.
Rename this entry.
|
void |
setId(ObjectId n) |
Deprecated.
Set (update) the SHA-1 of this entry.
|
void |
setModified() |
Deprecated.
Mark this entry as modified.
|
public Tree getParent()
public void delete()
public void detachParent()
public Repository getRepository()
public byte[] getNameUTF8()
public String getName()
public void rename(String n) throws IOException
n - The new nameIOExceptionpublic void rename(byte[] n)
throws IOException
n - The new nameIOExceptionpublic boolean isModified()
public void setModified()
public ObjectId getId()
public void setId(ObjectId n)
n - SHA-1 for this entry.public String getFullName()
public byte[] getFullNameUTF8()
public int compareTo(Object o)
compareTo in interface Comparablepublic static final int lastChar(TreeEntry treeEntry)
treeEntry - public abstract FileMode getMode()
Copyright © 2018. All rights reserved.