|
||||||||||
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(File wd,
File f)
Deprecated. Add the content of a file to the index. |
GitIndex.Entry |
add(File wd,
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(File wd)
Deprecated. Check out content of the content represented by the index |
void |
checkoutEntry(File wd,
GitIndex.Entry e)
Deprecated. Check out content of the specified index entry |
GitIndex.Entry |
getEntry(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(File wd,
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 IOException
IOException
public GitIndex.Entry add(File wd, File f) throws IOException
wd
- workdirf
- the file
IOException
public GitIndex.Entry add(File wd, File f, byte[] content) throws IOException
wd
- workdirf
- the filecontent
- content of the file
IOException
public boolean remove(File wd, File f) throws IOException
wd
- workdirf
- the file whose path shall be removed.
IOException
public void read() throws IOException
IOException
public void write() throws IOException
IOException
public void readTree(Tree t) throws IOException
t
- The tree to read
IOException
public GitIndex.Entry addEntry(TreeEntry te) throws IOException
te
- tree entry
IOException
public void checkout(File wd) throws IOException
wd
- workdir
IOException
public void checkoutEntry(File wd, GitIndex.Entry e) throws IOException
wd
- workdire
- index entry
IOException
public ObjectId writeTree() throws IOException
IOException
public GitIndex.Entry[] getMembers()
public GitIndex.Entry getEntry(String path) throws UnsupportedEncodingException
path
-
UnsupportedEncodingException
public Repository getRepository()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |