Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] EGit PDE - help with EGit/JGit

On Wed, Oct 27, 2010 at 4:09 PM, Chris Aniszczyk <caniszczyk@xxxxxxxxx> wrote:
>
> ObjectId start = repo.resolve(Constants.HEAD);
> RevWalk walk = new RevWalk(repo).
> walk.sort(RevSort.TOPO, true);
> walk.sort(RevSort.COMMIT_TIME_DESC, true);
> walk.setTreeFilter(PathFilter.create(mapping.getRepoRelativePath(file)));
> walk.markStart(walk.lookupCommit(start));
> RevCommit commit = walk.next();

Hi Chris,

I tried this out and multiple walk.next()s just returns the full
commit list, it doesn't appear to be narrowing it down.

PW

-- 
Paul Webster
Hi floor.  Make me a sammich! - GIR


Back to the top