[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] null parent

You can use an EmptyTreeIterator, there is an example in EGit that uses one to find the list of DiffEntry objects that are later passed to DiffFormatter.format.

https://github.com/eclipse/egit/blob/master/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/FileDiff.java#L87-88

Sincerely,
Kevin

On Wed, Dec 14, 2011 at 10:26 AM, Gonsolo <gonsolo@xxxxxxxxx> wrote:
Does DiffFormatter work with a null parent?
And if not, why and how am I supposed to get the patch from the first
commit in a repository?

--
g
_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jgit-dev