Refactor WindowCache.reconfigure() to take a configuration object
commit067768ec9907a80f456cb508a564f5b67bb3ce59
authorShawn O. Pearce <spearce@spearce.org>
Tue, 17 Mar 2009 01:16:07 +0000 (16 18:16 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 19 Mar 2009 20:05:11 +0000 (19 21:05 +0100)
tree14d947d249b22a1932292b060e1c49ad009c0cbe
parenta5ead05ede94f050aba75e129a3742a5e7c2dac9
Refactor WindowCache.reconfigure() to take a configuration object

This makes it safer for applications to be calling reconfigure()
should we ever add more controllable parameters to cache.  It may
also leave the door open for more common option handling, such as
reading from ~/.gitconfig in a standard way across applications
built upon JGit.  We could also add sanity check functions to the
new configuration object, allowing applications to inquire about
the validity before installing it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryTestCase.java
org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectCache.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCacheConfig.java [new file with mode: 0644]