Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] RevWalk not iterating over any commits

On Tue, Jan 11, 2011 at 11:33 AM, Shawn Pearce <spearce@xxxxxxxxxxx> wrote:
> On Tue, Jan 11, 2011 at 08:59, Jan Finis <finis@xxxxxxxxx> wrote:
>> the API of RevWalk is quite ambiguous. When creating a RevWalk from a
>> Repository, shouldn't that RevWalk contain all commits of that repository,
>> or at least any? The constructor taking a Repository does not state this.
>
> You need to add one or more start points of the commit DAG before the
> RevWalk is able to perform any traversal.

You can also use LogCommand from org.eclipse.jgit.api... if you don't
specify a start point it should just use HEAD...

Ideally, clients of the JGit API should be using the
'org.eclipse.jgit.api' commands and not dipping into the low level API
unless they need to...

-- 
Cheers,

Chris Aniszczyk
http://aniszczyk.org
+1 860 839 2465


Back to the top