]> source.dussan.org Git - jgit.git/commit
Use keep(1) instead of add() when skipping an entry 64/264/3
authorShawn O. Pearce <spearce@spearce.org>
Fri, 11 Sep 2009 19:35:23 +0000 (12:35 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 4 Feb 2010 03:58:20 +0000 (19:58 -0800)
commit76b98230055444b0baded4ff1aa87da3b77e2b45
treebb7e3a50a216de424ff3fb491abdcb7e4fc5bfa4
parent29b8fa84e680ce090ed355afd6052c4be9137a0c
Use keep(1) instead of add() when skipping an entry

Doing a keep call with a length of 1 will copy the current entry just
like the previous add was doing, but it avoids doing any validation
on the entry.  This is sane because the entry can be assumed to be
already valid, since its originating from the destination index.

Change-Id: I250d902fc98580444af1ba4b8fedceb654541451
Originally: http://thread.gmane.org/gmane.comp.version-control.git/128214/focus=128213
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheBuildIterator.java