|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.lib.GitIndex.Entry
DirCacheEntry
.
@Deprecated public class GitIndex.Entry
An index entry
Method Summary | |
---|---|
int |
getModeBits()
Deprecated. Return raw file mode bits. |
String |
getName()
Deprecated. |
byte[] |
getNameUTF8()
Deprecated. |
ObjectId |
getObjectId()
Deprecated. |
int |
getSize()
Deprecated. |
int |
getStage()
Deprecated. |
int |
getStages()
Deprecated. Returns the stages in which the entry's file is recorded in the index. |
boolean |
isAssumedValid()
Deprecated. |
boolean |
isModified(File wd)
Deprecated. Check if an entry's content is different from the cache, File status information is used and status is same we consider the file identical to the state in the working directory. |
boolean |
isModified(File wd,
boolean forceContentCheck)
Deprecated. Check if an entry's content is different from the cache, File status information is used and status is same we consider the file identical to the state in the working directory. |
boolean |
isUpdateNeeded()
Deprecated. |
void |
setAssumeValid(boolean assumeValid)
Deprecated. Set whether to always assume this entry valid |
void |
setUpdateNeeded(boolean updateNeeded)
Deprecated. Set whether this entry must be checked |
String |
toString()
Deprecated. |
boolean |
update(File f)
Deprecated. Update this index entry with stat and SHA-1 information if it looks like the file has been modified in the workdir. |
boolean |
update(File f,
byte[] newContent)
Deprecated. Update this index entry with stat and SHA-1 information if it looks like the file has been modified in the workdir. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean update(File f) throws IOException
f
- file in work dir
IOException
public boolean update(File f, byte[] newContent) throws IOException
f
- file in work dirnewContent
- the new content of the file
IOException
public boolean isModified(File wd)
wd
- working directory to compare content with
public boolean isModified(File wd, boolean forceContentCheck)
wd
- working directory to compare content withforceContentCheck
- True if the actual file content
should be checked if modification time differs.
public int getStages()
getStage()
public String toString()
toString
in class Object
public String getName()
public byte[] getNameUTF8()
public ObjectId getObjectId()
public int getStage()
public int getSize()
public boolean isAssumedValid()
public boolean isUpdateNeeded()
public void setAssumeValid(boolean assumeValid)
assumeValid
- true to ignore changespublic void setUpdateNeeded(boolean updateNeeded)
updateNeeded
- public int getModeBits()
FileMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |