From: Junio C Hamano Date: Thu, 05 Aug 2021 18:47:23 GMT Subject: Re: [PATCH v4 1/6] revision: separate walk and unsorted flags Message-ID: In-Reply-To: <67232910acf4a248654060ad51a17af37acba0fb.1628162156.git.ps@pks.im> Patrick Steinhardt writes: > The `--no-walk` flag supports two modes: either it sorts the revisions > given as input input or it doesn't. This is reflected in a single > `no_walk` flag, which reflects one of the three states "walk", "don't > walk but without sorting" and "don't walk but with sorting". > > Split up the flag into two separate bits, one indicating whether we > should walk or not and one indicating whether the input should be sorted > or not. This will allow us to more easily introduce a new flag > `--unsorted-input`, which only impacts the sorting bit. > > Signed-off-by: Patrick Steinhardt > --- > builtin/log.c | 2 +- > builtin/revert.c | 3 ++- > revision.c | 9 +++++---- > revision.h | 7 ++----- > 4 files changed, 10 insertions(+), 11 deletions(-) Every line of changes in the patch is very satisfying ;-)