Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Comparing to RevBlob objects

Dariusz Luksza <dariusz.luksza@xxxxxxxxx> wrote:
> I have two RevBlob bojects and I need to determinate with one is
> "younger" (has less modifications) to indicate does this change is
> incoming or outgoing.
> 
> Objects equality isn't a problem, because this we can figure out based
> on object id (baseRev.getId().equals(remote.getId())). But how
> determinate change direction if objects id's are different ?

You can't.

To determine that you need to look at the RevCommit chain that led
you here to this blob.

-- 
Shawn.


Back to the top