Skip to content

Instantly share code, notes, and snippets.

View YoooFeng's full-sized avatar

YangFeng YoooFeng

View GitHub Profile
@paulwellnerbou
paulwellnerbou / GitLogBetween.java
Created June 18, 2015 16:32
Getting git log between commits, branches and annotated tags with JGit
package de.wellnerbou.gitjira.jgit;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import java.io.IOException;