Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 11, 2012
  1. @peff @gitster

    gc: do not explode objects which will be immediately pruned

    peff authored gitster committed
    When we pack everything into one big pack with "git repack
    -Ad", any unreferenced objects in to-be-deleted packs are
    exploded into loose objects, with the intent that they will
    be examined and possibly cleaned up by the next run of "git
    Since the exploded objects will receive the mtime of the
    pack from which they come, if the source pack is old, those
    loose objects will end up pruned immediately. In that case,
    it is much more efficient to skip the exploding step
    entirely for these objects.
    This patch teaches pack-objects to receive the expiration
    information and avoid writing these objects out. It also
    teaches "git gc" to pass the value of gc.pruneexpire to
    repack (which in turn learns to pass it along to
    pack-objects) so that this optimization happens
    automatically during "git gc" and "git gc --auto".
    Signed-off-by: Jeff King <>
    Acked-by: Nicolas Pitre <>
    Signed-off-by: Junio C Hamano <>
Commits on Sep 25, 2006
  1. @peff

    git-repack: allow git-repack to run in subdirectory

    peff authored Junio C Hamano committed
    Now that we explicitly create all tmpfiles below $GIT_DIR, there's no reason
    to care about which directory we're in.
    Signed-off-by: Jeff King <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.