• J
    Merge branch 'jk/prune-mtime' · d70e331c
    Junio C Hamano 提交于
    Tighten the logic to decide that an unreachable cruft is
    sufficiently old by covering corner cases such as an ancient object
    becoming reachable and then going unreachable again, in which case
    its retention period should be prolonged.
    
    * jk/prune-mtime: (28 commits)
      drop add_object_array_with_mode
      revision: remove definition of unused 'add_object' function
      pack-objects: double-check options before discarding objects
      repack: pack objects mentioned by the index
      pack-objects: use argv_array
      reachable: use revision machinery's --indexed-objects code
      rev-list: add --indexed-objects option
      rev-list: document --reflog option
      t5516: test pushing a tag of an otherwise unreferenced blob
      traverse_commit_list: support pending blobs/trees with paths
      make add_object_array_with_context interface more sane
      write_sha1_file: freshen existing objects
      pack-objects: match prune logic for discarding objects
      pack-objects: refactor unpack-unreachable expiration check
      prune: keep objects reachable from recent objects
      sha1_file: add for_each iterators for loose and packed objects
      count-objects: use for_each_loose_file_in_objdir
      count-objects: do not use xsize_t when counting object size
      prune-packed: use for_each_loose_file_in_objdir
      reachable: mark index blobs as SEEN
      ...
    d70e331c
git-compat-util.h 20.7 KB