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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top