diff options
author | Shawn Pearce <spearce@spearce.org> | 2014-10-17 14:17:23 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2014-10-19 11:36:08 -0700 |
commit | 048dbf41735175de77f60dc55dba9ae6c8a65317 (patch) | |
tree | f6d206ec7d56023b9dce07ba5a7fdf786099859f /org.eclipse.jgit.http.apache | |
parent | 5c85d5d58adbe415c217e45aa365892f2ca9fd0c (diff) | |
download | jgit-048dbf41735175de77f60dc55dba9ae6c8a65317.tar.gz jgit-048dbf41735175de77f60dc55dba9ae6c8a65317.zip |
Add retainOnReset(RevFlag) to RevWalk to simplify reset usage
Applications sometimes use a RevFlag instead of a Set<RevObject>
to track boolean state bits about objects being processed. However
this requires careful use of the resetRetain() methods to avoid an
accidental clearing of the RevFlag bits, effectively clearing the
Set<RevObject> the application wanted to track.
Simplify that use case by offering retainOnReset, a collection of
flags that are never cleared by the RevWalk.
Change-Id: I4c05b89b1398e4a4f371eac3a5d1d5edddec838f
Diffstat (limited to 'org.eclipse.jgit.http.apache')
0 files changed, 0 insertions, 0 deletions