jgit how can i get all the commits that occurred between two dates

Or just all the commits that occurred between two dates? In SVN, you could do something like svn diff -r{date}:{date} to do it!

  • How can I allow anonymous push to a git repository over http?
  • How to use GET to fetch list of repositories?
  • Github Authentication Failed - … GitHub does not provide shell access
  • Pipes in a git Alias?
  • Never-ending GIT story - what am I doing wrong here?
  • Your branch is ahead of 'origin/master' by 1 commit
  • Using Git how to merge a subtree from remote branch
  • How to commit a directory into a git repository?
  • How to prevent remote branch deletion in git without using gitolite
  • How do I join two git repos without a common root, where all modified files are the same?
  • git deleted everything, how to recover files and folders
  • How do I do git push with JGit?
  • One Solution collect form web for “jgit how can i get all the commits that occurred between two dates”

    You can take example of this JGit test class RevWalkFilterTest.java:

    Date since = getClock();
    Date until = getClock();
    RevFilter between = CommitTimeRevFilter.between(since, until);

    It uses the class org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter.

    Git Baby is a git and github fan, let's start git clone.