Allow DirCacheEntry instances to be created with stage > 0
commit1f800e062f6149b439339b0fa5c0bd94f9fa321f
authorShawn O. Pearce <spearce@spearce.org>
Thu, 22 Jan 2009 23:28:08 +0000 (22 15:28 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 23 Jan 2009 22:27:18 +0000 (23 23:27 +0100)
tree2c1fd5021740a6cd87046ef27471e43bdb362e9a
parent84412ed0e0061ee87a54bf17e0e15b9a49e83098
Allow DirCacheEntry instances to be created with stage > 0

As the stage is part of the sorting criteria for DirCacheEntry
objects we don't allow the stage to be modified on the fly in
an existing instance.  Instead the stage must be set by reading
it from the on-disk format or by creating a new entry with the
proper path and stage components.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/dircache/DirCacheEntry.java