Skip to content
  • Junio C Hamano's avatar
    Merge branch 'jk/for-each-object-iteration' · 0c54cdaf
    Junio C Hamano authored
    The API to iterate over all objects learned to optionally list
    objects in the order they appear in packfiles, which helps locality
    of access if the caller accesses these objects while as objects are
    enumerated.
    
    * jk/for-each-object-iteration:
      for_each_*_object: move declarations to object-store.h
      cat-file: use a single strbuf for all output
      cat-file: split batch "buf" into two variables
      cat-file: use oidset check-and-insert
      cat-file: support "unordered" output for --batch-all-objects
      cat-file: rename batch_{loose,packed}_object callbacks
      t1006: test cat-file --batch-all-objects with duplicates
      for_each_packed_object: support iterating in pack-order
      for_each_*_object: give more comprehensive docstrings
      for_each_*_object: take flag arguments as enum
      for_each_*_object: store flag definitions in a single location
    0c54cdaf