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.@Deprecated public abstract class TreeEntry extends Object implements Comparable
Modifier | Constructor and Description |
---|---|
protected |
TreeEntry(Tree myParent,
ObjectId myId,
byte[] myNameUTF8)
Deprecated.
Construct a named tree entry.
|
Modifier and Type | Method and 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 nameIOException
public void rename(byte[] n) throws IOException
n
- The new nameIOException
public 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 Comparable
public static final int lastChar(TreeEntry treeEntry)
treeEntry
- public abstract FileMode getMode()
Copyright © 2015. All rights reserved.