문제

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