Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Repository.mapCommit() during checkout

On Mon, Jun 21, 2010 at 1:02 AM, Dmitry Neverov
<dmitry.neverov@xxxxxxxxx> wrote:
> Is it safe to call repository.mapCommit() if other thread make fetch() on
> this repository?

Yes.  Reading from a repository while another thread is writing to it
by any means, including fetch, is safe.  However, please be warned
that it is part of our project's plan to get rid of the mapCommit()
API.  RevWalk is faster, and provides significantly more


Back to the top