|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.GitIndex.Entry
public class GitIndex.Entry
An index entry
| Method Summary | |
|---|---|
int |
getModeBits()
Return raw file mode bits. |
java.lang.String |
getName()
|
byte[] |
getNameUTF8()
|
ObjectId |
getObjectId()
|
int |
getSize()
|
int |
getStage()
|
boolean |
isAssumedValid()
|
boolean |
isModified(java.io.File wd)
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(java.io.File wd,
boolean forceContentCheck)
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()
|
void |
setAssumeValid(boolean assumeValid)
Set whether to always assume this entry valid |
void |
setUpdateNeeded(boolean updateNeeded)
Set whether this entry must be checked |
java.lang.String |
toString()
|
boolean |
update(java.io.File f)
Update this index entry with stat and SHA-1 information if it looks like the file has been modified in the workdir. |
boolean |
update(java.io.File f,
byte[] newContent)
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(java.io.File f)
throws java.io.IOException
f - file in work dir
java.io.IOException
public boolean update(java.io.File f,
byte[] newContent)
throws java.io.IOException
f - file in work dirnewContent - the new content of the file
java.io.IOExceptionpublic boolean isModified(java.io.File wd)
wd - working directory to compare content with
public boolean isModified(java.io.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 java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.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 | ||||||||