From: Junio C Hamano Date: Fri, 11 Sep 2026 19:05:09 GMT Subject: Re: [PATCH] range-diff: add --matched-only to skip one-sided commits Message-ID: In-Reply-To: Harald Nordgren writes: >> > Seems like a big change, and deprecated options are a pain in the neck >> > because we can never actually remove them. >> > >> > If we decide to go this way, we might name them "--hide-{left,right}" >> > and just not introduce a condition that makes them incompatible. Then >> > "--matched-only" would be pure syntactic sugar and wouldn't even be >> > 100% necessary to have to achieve this. >> >> Or we can just keep the code and fix the documentation. I think >> that would be much less impact. > > I agree. > > > Harald I thought I'd try my own version, but it seems that we can simply remove the misleading sentence and the remainder already is very easy to read and understand ;-) `--matched-only`:: Only emit commits that have a corresponding commit in the other range, suppressing any commit that exists on only one side. Useful to skip added or removed commits when reviewing how the commits that survived a rebase changed.