|Re: [jgit-dev] RevWalk not iterating over any commits|
On Tue, Jan 11, 2011 at 09:36, Chris Aniszczyk <caniszczyk@xxxxxxxxx> wrote: > 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... True, but the LogCommand in JGit API is pretty horrid. For example, its not fast. -- Shawn.
Back to the top