diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-07-21 10:51:15 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-07-21 10:34:08 -0700 |
commit | 09910ffa32e472481a3ba237cf99d803576c9172 (patch) | |
tree | e94c076de081f7a5e345acef8b5d653245f21ca8 /org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java | |
parent | 0ec0e21fdf6a60692cf796ea789b689eb1f0b0b2 (diff) | |
download | jgit-09910ffa32e472481a3ba237cf99d803576c9172.tar.gz jgit-09910ffa32e472481a3ba237cf99d803576c9172.zip |
Move ignore node handling into WorkingTreeIterator
The working tree iterator has perfect knowledge of the path structure
as well as immediate information about whether or not an ignore file
even exists at this level. We can exploit that to simplify the
logic and running time for testing ignored file status by pushing
all of the checks down into the iterator itself.
Change-Id: I22ff534853e8c5672cc5c2d9444aeb14e294070e
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: Charley Wang <chwang@redhat.com>
CC: Chris Aniszczyk <caniszczyk@gmail.com>
CC: Stefan Lay <stefan.lay@sap.com>
CC: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java index 64c1aad700..68965c1903 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java @@ -918,4 +918,8 @@ public class TreeWalk { static String pathOf(final AbstractTreeIterator t) { return RawParseUtils.decode(Constants.CHARSET, t.path, 0, t.pathLen); } + + static String pathOf(final byte[] buf, int pos, int end) { + return RawParseUtils.decode(Constants.CHARSET, buf, pos, end); + } } |