Interface Commits
public interface Commits
Provides iterator-based access to the history of a named reference.
-
Method Summary
Modifier and TypeMethodDescription<C extends BaseCommitObj>
Iterator<C> commitLog(String refName, OptionalLong offset, Class<C> clazz) Retrieves the commit log in the natural, chronologically reverse order - most recent commit first.<C extends BaseCommitObj>
Iterator<C> commitLogReversed(String refName, long offset, Class<C> clazz) Retrieves the commit log in chronological order starting at the given offset.
-
Method Details
-
commitLog
<C extends BaseCommitObj> Iterator<C> commitLog(String refName, OptionalLong offset, Class<C> clazz) Retrieves the commit log in the natural, chronologically reverse order - most recent commit first. -
commitLogReversed
<C extends BaseCommitObj> Iterator<C> commitLogReversed(String refName, long offset, Class<C> clazz) Retrieves the commit log in chronological order starting at the given offset.This function is useful when retrieving commits to serve events/notification use cases.
-