From: Junio C Hamano Date: Wed, 13 Jan 2021 19:28:40 GMT Subject: Re: [PATCH] patch-ids: handle duplicate hashmap entries Message-ID: In-Reply-To: <20210113092448.GE32482@sync> Arnaud Morin writes: > Without this patch, that's even worst, consistency is broken. > Let me explain. > > With your history example: > > ---o---o---M---o---o---W---o---o---M---o--- branch > \ > o---o---o---M---o--- master > > # WITHOUT PATCH > If we imagine that master is having more commits count than branch. > The result of rev-list will be like you described: > $ git rev-list --left-right --cherry-pick branch...master > > In other words, it's showing both W and M. So, at least they cancel out and the reader can tell that the net effect was none --- that is "sort of understandable" result. > BUT, if we imagine now that master is having less commits count than branch. > $ git rev-list --left-right --cherry-pick branch...master > > It's only showing W! Which is what I felt misleading. > # WITH PATCH > With the patch, everything is consistent, and only W is kept in ouptut, > no matter the size of history: > $ git.p rev-list --left-right --cherry-pick branch...master >