From: Grzegorz Kossakowski Date: Wed, 12 Aug 2009 00:58:57 GMT Subject: Re: [PATCH 2/2] Add PathSuffixFilter class which is TreeFilter. Message-ID: <4A8213D1.3070204@tuffmail.com> In-Reply-To: <1250038581-31241-2-git-send-email-grek@tuffmail.com> Grzegorz Kossakowski wrote: > From: Grzegorz Kossakowski > > Added a simple TreeFilter that filters all entries that have path with > given suffix. This filter is always recursive. > > Signed-off-by: Grzegorz Kossakowski > --- > .../treewalk/filter/PathSuffixFilterTestCase.java | 110 ++++++++++++++++++++ > .../src/org/spearce/jgit/treewalk/TreeWalk.java | 33 ++++++ > .../jgit/treewalk/filter/PathSuffixFilter.java | 74 +++++++++++++ > 3 files changed, 217 insertions(+), 0 deletions(-) > create mode 100644 org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/filter/PathSuffixFilterTestCase.java > create mode 100644 org.spearce.jgit/src/org/spearce/jgit/treewalk/filter/PathSuffixFilter.java > > diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/filter/PathSuffixFilterTestCase.java b/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/filter/PathSuffixFilterTestCase.java > new file mode 100644 > index 0000000..6042119 > --- /dev/null > +++ b/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/filter/PathSuffixFilterTestCase.java > @@ -0,0 +1,110 @@ > +// Copyright (C) 2009 The Android Open Source Project > +// > +// Licensed under the Apache License, Version 2.0 (the "License"); > +// you may not use this file except in compliance with the License. > +// You may obtain a copy of the License at > +// > +// http://www.apache.org/licenses/LICENSE-2.0 > +// > +// Unless required by applicable law or agreed to in writing, software > +// distributed under the License is distributed on an "AS IS" BASIS, > +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > +// See the License for the specific language governing permissions and > +// limitations under the License. > + > Oups. Wrong headers. I'll resend these patches. -- Grzegorz Kossakowski