APISonar


com.google.copybara.git.GitRepository.log

> com > google > copybara > git > GitRepository > log
com APIs google APIs copybara APIs git APIs GitRepository APIs log APIs

Example 1
public static void assertAuthorTimestamp(GitRepository repo, String commitRef,
      ZonedDateTime timestamp)
      throws RepoException {
    GitLogEntry commit = Iterables.getOnlyElement(repo.log(commitRef).withLimit(1).run());
    assertThat(commit.getAuthorDate()).isEquivalentAccordingToCompareTo(timestamp);
  }