From: Harald Nordgren Date: Tue, 07 Jul 2026 08:55:39 GMT Subject: Re: [PATCH v7 0/5] history: add squash subcommand to fold a range Message-ID: In-Reply-To: > > The range-diff does not show any input sanitization - what happens when > > the user passes "--reverse" for example? As I said in [4] we should copy > > what "git replay" does to sanity check the rev-list options, otherwise > > we've got no idea whether the parent of the first commit returned by > > get_revision() is the commit we want to use as the parent of the > > squashed commit. > > Yeah, good point. Well, the code already blocks "--reverse" and other unknown options, but I can clarify that better in the commit message. Harald