diff options
author | Gal Paikin <paiking@google.com> | 2020-11-19 18:05:04 +0100 |
---|---|---|
committer | Gal Paikin <paiking@google.com> | 2021-01-26 21:47:28 +0100 |
commit | 68b95afc706bdac78443f1b7c17c48bf57735f2d (patch) | |
tree | 5ace9e382ef6410e4108b03707ff9515143aed44 /org.eclipse.jgit.gpg.bc.test/BUILD | |
parent | 63f4de721c2e5688dbbc20cac130276b27935dc4 (diff) | |
download | jgit-68b95afc706bdac78443f1b7c17c48bf57735f2d.tar.gz jgit-68b95afc706bdac78443f1b7c17c48bf57735f2d.zip |
Add seekPastPrefix method to RefCursor
This method will be used by the follow-up change. This useful if we want
to go over all the changes after a specific ref.
For example, the new method allows us to create a follow-up that would
go over all the refs until we reach a specific ref (e.g refs/changes/),
and then we use seekPastPrefix(refs/changes/) to read the rest of the refs,
thus basically we return all refs except a specific prefix.
When seeking past a prefix, the previous condition that created the
RefCursor still applies. E.g, if the cursor was created by
seekRefsWithPrefix, we can skip some refs but we will not return refs
that are not starting with this prefix.
Signed-off-by: Gal Paikin <paiking@google.com>
Change-Id: I2c02e89c877fe90da8619cb8a4a9a0c865f238ef
Diffstat (limited to 'org.eclipse.jgit.gpg.bc.test/BUILD')
0 files changed, 0 insertions, 0 deletions