Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 27, 2010
  1. @jast @gitster

    repack: add -F flag to let user choose between --no-reuse-delta/object

    jast authored gitster committed
    In 479b56b ('make "repack -f" imply "pack-objects --no-reuse-object"'),
    git repack -f was changed to include recompressing all objects on the
    zlib level on the assumption that if the user wants to spend that much
    time already, some more time won't hurt (and recompressing is useful if
    the user changed the zlib compression level).
    However, "some more time" can be quite long with very big repositories,
    so some users are going to appreciate being able to choose. If we are
    going to give them the choice, --no-reuse-object will probably be
    interesting a lot less frequently than --no-reuse-delta. Hence, this
    reverts -f to the old behaviour (--no-reuse-delta) and adds a new -F
    option that replaces the current -f.
    Measurements taken using this patch on a current clone of git.git
    indicate a 17% decrease in time being made available to users:
    git repack -Adf  34.84s user 0.56s system 145% cpu 24.388 total
    git repack -AdF  38.79s user 0.56s system 133% cpu 29.394 total
    Signed-off-by: Jan Krüger <>
    Acked-by: Nicolas Pitre <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.