]> source.dussan.org Git - jgit.git/commit
IndexDiff: Simplify allocation of filter list 68/2068/2
authorShawn O. Pearce <spearce@spearce.org>
Wed, 8 Dec 2010 02:27:59 +0000 (18:27 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 8 Dec 2010 18:03:20 +0000 (10:03 -0800)
commitf4e9c8890cc625ba57b5a3cd078ca14cbcc86f8b
tree9a4bc513b883b1bf6d6a526b7ad6d9813362ec58
parent11fd0fe03ae471d1a6528070b4fee884b0ffea1d
IndexDiff: Simplify allocation of filter list

We add either 3 or 4 filters.  If we are adding only 3 filters,
allocating the array for 4 isn't a huge waste of memory, but it
does simplify our code.

Change-Id: I7df29b414f6d5cfcf533edb1405083e6fcec32cf
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/IndexDiff.java