Refactor WindowCache to allow dynamic changes in configuration
commit5ef1605f0a2afc0baed14bad60a5b44450ba7fbc
authorShawn O. Pearce <spearce@spearce.org>
Sun, 18 May 2008 20:56:29 +0000 (18 16:56 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 18 May 2008 20:56:29 +0000 (18 16:56 -0400)
tree618d62042d33776fde05320db25a31d636b2ed2c
parent2273c631c06bafd3565b0b695450a61f0e28a6e5
Refactor WindowCache to allow dynamic changes in configuration

We want to allow applications to alter the WindowCache configuration
on the fly, such as in IDEs when the user changes our parameters and
expects the IDE to respond immediately to the modification.

This means we cannot safely access our window size data from outside
of WindowCache, as the ids for windows can change when the size of a
window is modified by the caller.  Instead we must work with the full
file position anytime we want data, which forces us into using a 64
bit value where we had been using only a 32 bit window id.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/ByteArrayWindow.java
org.spearce.jgit/src/org/spearce/jgit/lib/ByteBufferWindow.java
org.spearce.jgit/src/org/spearce/jgit/lib/ByteWindow.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCursor.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowedFile.java