|
|
@ -79,9 +79,9 @@ import com.fr.third.eclipse.jgit.treewalk.filter.PathFilter; |
|
|
|
import com.fr.third.eclipse.jgit.treewalk.filter.TreeFilter; |
|
|
|
import com.fr.third.eclipse.jgit.treewalk.filter.TreeFilter; |
|
|
|
import com.fr.third.eclipse.jgit.util.QuotedString; |
|
|
|
import com.fr.third.eclipse.jgit.util.QuotedString; |
|
|
|
import com.fr.third.eclipse.jgit.util.io.DisabledOutputStream; |
|
|
|
import com.fr.third.eclipse.jgit.util.io.DisabledOutputStream; |
|
|
|
import org.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm; |
|
|
|
import com.fr.third.eclipse.jgit.diff.DiffAlgorithm.SupportedAlgorithm; |
|
|
|
import org.eclipse.jgit.diff.DiffEntry.ChangeType; |
|
|
|
import com.fr.third.eclipse.jgit.diff.DiffEntry.ChangeType; |
|
|
|
import org.eclipse.jgit.patch.FileHeader.PatchType; |
|
|
|
import com.fr.third.eclipse.jgit.patch.FileHeader.PatchType; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream; |
|
|
|
import java.io.ByteArrayOutputStream; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
@ -90,16 +90,16 @@ import java.util.Collection; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.ChangeType.ADD; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.ChangeType.ADD; |
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.ChangeType.COPY; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.ChangeType.COPY; |
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.ChangeType.DELETE; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.ChangeType.DELETE; |
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.ChangeType.MODIFY; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.ChangeType.MODIFY; |
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.ChangeType.RENAME; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.ChangeType.RENAME; |
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.Side.NEW; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.Side.NEW; |
|
|
|
import static org.eclipse.jgit.diff.DiffEntry.Side.OLD; |
|
|
|
import static com.fr.third.eclipse.jgit.diff.DiffEntry.Side.OLD; |
|
|
|
import static org.eclipse.jgit.lib.Constants.encode; |
|
|
|
import static com.fr.third.eclipse.jgit.lib.Constants.encode; |
|
|
|
import static org.eclipse.jgit.lib.Constants.encodeASCII; |
|
|
|
import static com.fr.third.eclipse.jgit.lib.Constants.encodeASCII; |
|
|
|
import static org.eclipse.jgit.lib.FileMode.GITLINK; |
|
|
|
import static com.fr.third.eclipse.jgit.lib.FileMode.GITLINK; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Format a Git style patch script. |
|
|
|
* Format a Git style patch script. |
|
|
|