Support for RevSort.BOUNDARY in ObjectWalk
commit873530a775847d2ed23a330779e93e93e9eb175a
authorMarek Zawirski <marek.zawirski@gmail.com>
Sun, 15 Jun 2008 21:45:45 +0000 (15 23:45 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 28 Jun 2008 09:56:03 +0000 (28 11:56 +0200)
tree57addd9a6d07466e3ef22172575763fd6ddab53f
parent3f3d0a499aed6e4a59455e16f2c604b712309e30
Support for RevSort.BOUNDARY in ObjectWalk

When RevSort.BOUNDARY strategy in enabled, ObjectWalk now includes in
nextObjects() all objects associated with boundary commits (trees,
blobs) and all other objects explictly marked as  uninteresting
(boundary).

This behavior is something more than original C git-rev-list offers in
this matter - it is impossible to get such a behavior (to include all
boundary objects, not only commits, at output) directly from:
$ git-rev-list --objects-edge
Here, it is added for compactness - callers usually need also boundary
objects (e.g. for preparing thin-pack). If not, they can still easily
filter out such objects from nextObject() by checking for UNINTERESTING
flag or just use next() if interested only in commits.

Signed-off-by: Marek Zawirski <marek.zawirski@gmail.com>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/revwalk/ObjectWalk.java
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevSort.java