1. 15 Aug, 2018 1 commit
  2. 20 Jun, 2016 1 commit
    • Michael Haggerty's avatar
      dir_iterator: new API for iterating over a directory tree · 0fe5043d
      Michael Haggerty authored
      The iterator interface is modeled on that for references, though no
      vtable is necessary because there is (so far?) only one type of
      There are obviously a lot of features that could easily be added to this
      * Skip/include directory paths in the iteration
      * Shallow/deep iteration
      * Letting the caller decide which subdirectories to recurse into (e.g.,
        via a dir_iterator_advance_into() function)
      * Option to iterate in sorted order
      * Option to iterate over directory paths before vs. after their contents
      But these are not needed for the current patch series, so I refrain.
      Signed-off-by: default avatarMichael Haggerty <mhagger@alum.mit.edu>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>