Introduce the Git index
commit7bde7cc54a7cdef04f78d3e2c925f8195aff523a
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 9 May 2007 22:42:23 +0000 (10 00:42 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 10 Jun 2007 22:31:31 +0000 (11 00:31 +0200)
treed3981d925041947440939169244a798b67f72a42
parent12ea48445625a4b71063af5584a9219efcd310de
Introduce the Git index

This is a partial and non-optimized version of the Git Index. It covers
reading and writing of index with stage 0 entries from the index file plus
reading from trees plus writing trees. Adding and removing entries as well
as refreshing the timestamp and execute bit of the stat information is
supported. JDK1.6 is required to support the execute bit though. Most
of the stat information is ignored as the Java API does not have any
support for things like i-node number, device id or uid/gid information.

It is the same index as native Git uses so it should be enough to use
native Git, Stacked Git and Eclipse in paralell.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/FileMode.java
org.spearce.jgit/src/org/spearce/jgit/lib/GitIndex.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/lib/Tree.java
org.spearce.jgit/tst/org/spearce/jgit/lib/RepositoryTestCase.java
org.spearce.jgit/tst/org/spearce/jgit/lib/T0007_Index.java [new file with mode: 0644]
org.spearce.jgit/tst/org/spearce/jgit/lib/empty.gitindex.dat [new file with mode: 0644]
org.spearce.jgit/tst/org/spearce/jgit/lib/sorttest.gitindex.dat [new file with mode: 0644]