Re: [PATCH v10 4/5] dir_iterator: rewrite state machine model

2017-04-20 Thread Michael Haggerty
On 04/19/2017 03:14 PM, Daniel Ferreira wrote: > Perform a rewrite of dir_iterator_advance(). dir_iterator has > ceased to rely on a combination of level.initialized and level.dir_state > state variables and now only tracks the state with level.dir_state, > which simplifies the iterator mechanism,

Re: [PATCH v10 4/5] dir_iterator: rewrite state machine model

2017-04-19 Thread Junio C Hamano
Daniel Ferreira writes: > diff --git a/t/t0065-dir-iterator.sh b/t/t0065-dir-iterator.sh > index 46e5ce5..4c6632f 100755 > --- a/t/t0065-dir-iterator.sh > +++ b/t/t0065-dir-iterator.sh > @@ -15,31 +15,41 @@ test_expect_success 'setup' ' > >dir/d/e/d/a && > > mkdir

[PATCH v10 4/5] dir_iterator: rewrite state machine model

2017-04-19 Thread Daniel Ferreira
Perform a rewrite of dir_iterator_advance(). dir_iterator has ceased to rely on a combination of level.initialized and level.dir_state state variables and now only tracks the state with level.dir_state, which simplifies the iterator mechanism, makes the code easier to follow and eases additions of