Avoid breaking a path-limited revision walk prematurely
commit64e3e5c6b012223d403784b66e6958e27e6ab70e
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 24 Nov 2008 23:45:48 +0000 (25 00:45 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 25 Nov 2008 00:12:19 +0000 (24 16:12 -0800)
tree8ed91ad33910e72bea1be993ec2bb3e40acaa3b3
parent1b93c4ed3008fe4ebb475f4a21620aaa8a8e97be
Avoid breaking a path-limited revision walk prematurely

This optimization broke the walk when all changes were adds, assuming
the parent was an empty tree. This assumption was wrong. The tree
does not have to be empty, it can contain other trees and blobs
outside of the set matched by the TreeFilter.

http://code.google.com/p/egit/issues/detail?id=46

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/revwalk/RewriteTreeFilter.java