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!

  • Can't authenticate to GitHub from Git Extensions?
  • How to set up Git with Aptana Studio 3?
  • Github page shows master branch, not gh-pages
  • Is there a way to customize the output of git blame?
  • Git error - gpg failed to sign data
  • how to tell Git (msysgit on Windows) to use ssh and not pageant
  • Git: piecewise merge approach for major version changes?
  • Why do I get “unable to connect a socket” when I try to clone via a git URL?
  • Using git in iPhone projects
  • Git Tips and Tricks : Display Branch on Command Prompt not working and created side effects of git branch function not working and many others
  • Separate branches or git projects?
  • Eclipse Git Plugin: cannot Configure Push To Upstream
  • 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.