|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.lib.GitIndex
DirCache
instead.
public class GitIndex
A representation of the Git index.
The index points to the objects currently checked out or in the process of
being prepared for committing or objects involved in an unfinished merge.
The abstract format is:
path stage flags statdata SHA-1
Nested Class Summary | |
---|---|
class |
GitIndex.Entry
Deprecated. Use DirCacheEntry . |
Field Summary | |
---|---|
static int |
STAGE_0
Deprecated. Stage 0 represents merged entries. |
Constructor Summary | |
---|---|
GitIndex(Repository db)
Deprecated. Construct a Git index representation. |
Method Summary | |
---|---|
GitIndex.Entry |
add(java.io.File wd,
java.io.File f)
Deprecated. Add the content of a file to the index. |
GitIndex.Entry |
add(java.io.File wd,
java.io.File f,
byte[] content)
Deprecated. Add the content of a file to the index. |
GitIndex.Entry |
addEntry(TreeEntry te)
Deprecated. Add tree entry to index |
void |
checkout(java.io.File wd)
Deprecated. Check out content of the content represented by the index |
void |
checkoutEntry(java.io.File wd,
GitIndex.Entry e)
Deprecated. Check out content of the specified index entry |
GitIndex.Entry |
getEntry(java.lang.String path)
Deprecated. Look up an entry with the specified path. |
GitIndex.Entry[] |
getMembers()
Deprecated. Return the members of the index sorted by the unsigned byte values of the path names. |
Repository |
getRepository()
Deprecated. |
boolean |
isChanged()
Deprecated. |
void |
read()
Deprecated. Read the cache file into memory. |
void |
readTree(Tree t)
Deprecated. Read a Tree recursively into the index |
boolean |
remove(java.io.File wd,
java.io.File f)
Deprecated. Remove a path from the index. |
void |
rereadIfNecessary()
Deprecated. Reread index data from disk if the index file has been changed |
void |
write()
Deprecated. Write content of index to disk. |
ObjectId |
writeTree()
Deprecated. Construct and write tree out of index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STAGE_0
Constructor Detail |
---|
public GitIndex(Repository db)
db
- Method Detail |
---|
public boolean isChanged()
public void rereadIfNecessary() throws java.io.IOException
java.io.IOException
public GitIndex.Entry add(java.io.File wd, java.io.File f) throws java.io.IOException
wd
- workdirf
- the file
java.io.IOException
public GitIndex.Entry add(java.io.File wd, java.io.File f, byte[] content) throws java.io.IOException
wd
- workdirf
- the filecontent
- content of the file
java.io.IOException
public boolean remove(java.io.File wd, java.io.File f) throws java.io.IOException
wd
- workdirf
- the file whose path shall be removed.
java.io.IOException
public void read() throws java.io.IOException
java.io.IOException
public void write() throws java.io.IOException
java.io.IOException
public void readTree(Tree t) throws java.io.IOException
t
- The tree to read
java.io.IOException
public GitIndex.Entry addEntry(TreeEntry te) throws java.io.IOException
te
- tree entry
java.io.IOException
public void checkout(java.io.File wd) throws java.io.IOException
wd
- workdir
java.io.IOException
public void checkoutEntry(java.io.File wd, GitIndex.Entry e) throws java.io.IOException
wd
- workdire
- index entry
java.io.IOException
public ObjectId writeTree() throws java.io.IOException
java.io.IOException
public GitIndex.Entry[] getMembers()
public GitIndex.Entry getEntry(java.lang.String path) throws java.io.UnsupportedEncodingException
path
-
java.io.UnsupportedEncodingException
public Repository getRepository()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |