Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 6, 2007
  1. Pierre Habouzit Junio C Hamano

    Migrate git-repack.sh to use git-rev-parse --parseopt

    MadCoder authored gitster committed
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Oct 19, 2007
  1. Shawn O. Pearce

    Stop displaying "Pack pack-$ID created." during git-gc

    spearce authored
    Discussion on the list tonight came to the conclusion that showing
    the name of the packfile we just created during git-repack is not
    a very useful message for any end-user.  For the really technical
    folk who need to have the name of the newest packfile they can use
    something such as `ls -t .git/objects/pack | head -2` to find the
    most recently created packfile.
    
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Commits on Oct 3, 2007
  1. Junio C Hamano

    Merge branch 'jc/autogc'

    gitster authored
    * jc/autogc:
      git-gc --auto: run "repack -A -d -l" as necessary.
      git-gc --auto: restructure the way "repack" command line is built.
      git-gc --auto: protect ourselves from accumulated cruft
      git-gc --auto: add documentation.
      git-gc --auto: move threshold check to need_to_gc() function.
      repack -A -d: use --keep-unreachable when repacking
      pack-objects --keep-unreachable
      Export matches_pack_name() and fix its return value
      Invoke "git gc --auto" from commit, merge, am and rebase.
      Implement git gc --auto
Commits on Sep 23, 2007
  1. Junio C Hamano

    Supplant the "while case ... break ;; esac" idiom

    David Kastrup authored gitster committed
    A lot of shell scripts contained stuff starting with
    
    	while case "$#" in 0) break ;; esac
    
    and similar.  I consider breaking out of the condition instead of the
    body od the loop ugly, and the implied "true" value of the
    non-matching case is not really obvious to humans at first glance.  It
    happens not to be obvious to some BSD shells, either, but that's
    because they are not POSIX-compliant.  In most cases, this has been
    replaced by a straight condition using "test".  "case" has the
    advantage of being faster than "test" on vintage shells where "test"
    is not a builtin.  Since none of them is likely to run the git
    scripts, anyway, the added readability should be worth the change.
    
    A few loops have had their termination condition expressed
    differently.
    
    Signed-off-by: David Kastrup <dak@gnu.org>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Sep 18, 2007
  1. Junio C Hamano

    repack -A -d: use --keep-unreachable when repacking

    gitster authored
    This is a safer variant of "repack -a -d" that does not drop
    unreachable objects that are in packs.
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jul 12, 2007
  1. Brian Downing Junio C Hamano

    Add --window-memory option to git-repack

    bdowning authored gitster committed
    Signed-off-by: Brian Downing <bdowning@lavos.net>
    Acked-by: Nicolas Pitre <nico@cam.org>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jul 4, 2007
  1. Junio C Hamano

    repack: don't report "Nothing new to pack." if -q is given

    Uwe Kleine-König authored gitster committed
    Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Jul 3, 2007
  1. Junio C Hamano

    Rewrite "git-frotz" to "git frotz"

    gitster authored
    This uses the remove-dashes target to replace "git-frotz" to "git frotz".
    
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on May 25, 2007
  1. Ensure git-repack -a -d --max-pack-size=N deletes correct packs

    Dana How authored Junio C Hamano committed
    The packfile portion of the "remove redundant" code
    near the bottom of git-repack.sh is broken when
    pack splitting occurs.  Particularly since this is
    the only place where we automatically delete packfiles,
    make sure it works properly for all cases,  old or new.
    
    Signed-off-by: Dana L. How <danahow@gmail.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on May 21, 2007
  1. git-repack --max-pack-size: add option parsing to enable feature

    Dana L. How authored Junio C Hamano committed
    Add --max-pack-size parsing and usage messages.
    Upgrade git-repack.sh to handle multiple packfile names,
    and build packfiles in GIT_OBJECT_DIRECTORY not GIT_DIR.
    Update documentation.
    
    Signed-off-by: Dana L. How <danahow@gmail.com>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on May 10, 2007
  1. make "repack -f" imply "pack-objects --no-reuse-object"

    Nicolas Pitre authored Junio C Hamano committed
    Recomputing delta is much more expensive than recompressing
    anyway, and when the user says 'repack -f', it is a sign that
    the user is willing to spend CPU cycles.
    
    Signed-off-by: Nicolas Pitre <nico@cam.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jan 29, 2007
  1. Tom Prince

    [PATCH] Rename git-repo-config to git-config.

    tomprince authored Junio C Hamano committed
    Signed-off-by: Tom Prince <tom.prince@ualberta.net>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jan 12, 2007
  1. Make git-prune-packed a bit more chatty.

    Junio C Hamano authored
    Steven Grimm noticed that git-repack's verbosity is inconsistent
    because pack-objects is chatty and prune-packed is not.  This
    makes the latter a bit more chatty and gives -q option to
    squelch it.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 21, 2006
  1. Teach git-repack to preserve objects referred to by reflog entries.

    Junio C Hamano authored
    This adds a new option --reflog to pack-objects and revision
    machinery; do not bother documenting it for now, since this is
    only useful for local repacking.
    
    When the option is passed, objects reachable from reflog entries
    are marked as interesting while computing the set of objects to
    pack.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 13, 2006
  1. repacked packs should be read-only

    Nicolas Pitre authored Junio C Hamano committed
    ... just like the other pack creating tools do.
    
    Signed-off-by: Nicolas Pitre <nico@cam.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Oct 29, 2006
  1. Shawn O. Pearce

    Only repack active packs by skipping over kept packs.

    spearce authored Junio C Hamano committed
    During `git repack -a -d` only repack objects which are loose or
    which reside in an active (a non-kept) pack.  This allows the user
    to keep large packs as-is without continuous repacking and can be
    very helpful on large repositories.  It should also help us resolve
    a race condition between `git repack -a -d` and the new pack store
    functionality in `git-receive-pack`.
    
    Kept packs are those which have a corresponding .keep file in
    $GIT_OBJECT_DIRECTORY/pack.  That is pack-X.pack will be kept
    (not repacked and not deleted) if pack-X.keep exists in the same
    directory when `git repack -a -d` starts.
    
    Currently this feature is not documented and there is no user
    interface to keep an existing pack.
    
    Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Oct 23, 2006
  1. Merge branch 'np/pack'

    Junio C Hamano authored
    * np/pack:
      add the capability for index-pack to read from a stream
      index-pack: compare only the first 20-bytes of the key.
      git-repack: repo.usedeltabaseoffset
      pack-objects: document --delta-base-offset option
      allow delta data reuse even if base object is a preferred base
      zap a debug remnant
      let the GIT native protocol use offsets to delta base when possible
      make pack data reuse compatible with both delta types
      make git-pack-objects able to create deltas with offset to base
      teach git-index-pack about deltas with offset to base
      teach git-unpack-objects about deltas with offset to base
      introduce delta objects with offset to base
Commits on Oct 14, 2006
  1. git-repack: repo.usedeltabaseoffset

    Junio C Hamano authored
    When configuration variable `repack.UseDeltaBaseOffset` is set
    for the repository, the command passes `--delta-base-offset`
    option to `git-pack-objects`; this typically results in slightly
    smaller packs, but the generated packs are incompatible with
    versions of git older than (and including) v1.4.3.
    
    We will make it default to true sometime in the future, but not
    for a while.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Sep 25, 2006
  1. Jeff King

    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 <peff@peff.net>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Sep 20, 2006
  1. repack: use only pack-objects, not rev-list.

    Junio C Hamano authored
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Sep 6, 2006
  1. git-repack: create new packs inside $GIT_DIR, not cwd

    Martin Langhoff authored Junio C Hamano committed
    Avoid failing when cwd is !writable by writing the
    packfiles in $GIT_DIR, which is more in line with other commands.
    
    Without this, git-repack was failing when run from crontab
    by non-root user accounts. For large repositories, this
    also makes the mv operation a lot cheaper, and avoids leaving
    temp packfiles around the fs upon failure.
    
    Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Aug 29, 2006
  1. Matthias K

    Check if pack directory exists prior to descending into it

    matthiask authored Junio C Hamano committed
    This fixes the following warning:
    
    git-repack: line 42: cd: .git/objects/pack: No such file or directory
    
    This happens only, when git-repack -a is run without any packs in the
    repository.
    
    Signed-off-by: Matthias Kestenholz <matthias@spinlock.ch>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jul 13, 2006
  1. git-repack: avoid redirecting stderr into git-pack-objects

    Junio C Hamano authored
    We are trying to catch error condition of git-rev-list and cause
    the downstream pack-objects to barf, but if you run rev-list
    with anything that mucks with its stderr (such as GIT_TRACE),
    any stderr output would cause the pipeline to fail.
    
    [jc: originally from Matthias Lederhofer, with a reworded error message.]
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jun 25, 2006
  1. git-repack: Be careful when updating the same pack as an existing one.

    Junio C Hamano authored
    After a clone, packfiles are read-only by default and "mv" to
    replace the pack with a new one goes interactive, asking if the
    user wants to replace it.  If one is successfully moved and the
    other is not, the pack and its idx would become out-of-sync and
    corrupts the repository.
    
    Recovering is straightforward -- it is just the matter of
    finding the remaining .tmp-pack-* and make sure they are both
    moved -- but we should be extra careful not to do something so
    alarming to the users.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Jun 24, 2006
  1. git-repack -- respect -q and be quiet

    Martin Langhoff authored Junio C Hamano committed
    git-repack was passing the -q along to pack-objects but ignoring it
    itself. Correct the oversight.
    Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on May 7, 2006
  1. Merge branch 'fix'

    Junio C Hamano authored
    * fix:
      repack: honor -d even when no new pack was created
      clone: keep --reference even with -l -s
      repo-config: document what value_regexp does a bit more clearly.
      Release config lock if the regex is invalid
      core-tutorial.txt: escape asterisk
  2. Martin Waitz

    repack: honor -d even when no new pack was created

    tali authored Junio C Hamano committed
    If all objects are reachable via an alternate object store then we
    still have to remove all obsolete local packs.
    
    Signed-off-by: Martin Waitz <tali@admingilde.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Apr 19, 2006
  1. Allow "git repack" users to specify repacking window/depth

    Linus Torvalds authored Junio C Hamano committed
    .. but don't even bother documenting it. I don't think any normal person
    is supposed to ever really care, but it simplifies testing when you want
    to use the "git repack" wrapper rather than forcing you to use the core
    programs (which already do support the window/depth arguments, of course).
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Apr 3, 2006
  1. Jim Radford

    fix repacking with lots of tags

    radford authored Junio C Hamano committed
    Use git-rev-list's --all instead of git-rev-parse's to keep from
    hitting the shell's argument list length limits when repacking
    with lots of tags.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Mar 11, 2006
  1. repack: prune loose objects when -d is given

    Junio C Hamano authored
    [jc: the request originally came from Martin Atukunda, which was
     improved further by Alex Riesen]
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Feb 17, 2006
  1. git-repack: allow passing a couple of flags to pack-objects.

    Junio C Hamano authored
    A new flag -q makes underlying pack-objects less chatty.
    A new flag -f forces delta to be recomputed from scratch.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Dec 14, 2005
  1. git-repack: Usage string clean-up, emit usage at incorrect invocation

    freku045@student.liu.se authored Junio C Hamano committed
    Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Nov 25, 2005
  1. git-sh-setup: die if outside git repository.

    Junio C Hamano authored
    Now all the users of this script detect its exit status and die,
    complaining that it is outside git repository.  So move the code
    that dies from all callers to git-sh-setup script.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Nov 21, 2005
  1. git-repack: Properly abort in corrupt repository

    Linus Torvalds authored Junio C Hamano committed
    In a corrupt repository, git-repack produces a pack that does not
    contain needed objects without complaining, and the result of this
    combined with -d flag can be very painful -- e.g. a lossage of one
    tree object can lead to lossage of blobs reachable only through that
    tree.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Commits on Nov 19, 2005
  1. git-repack: do not do complex redundancy check.

    Junio C Hamano authored
    With "-a", redundant pack removal is trivial, and otherwise
    redundant pack removal is pointless; do not call
    git-redundant-pack from this script.
    
    Signed-off-by: Junio C Hamano <junkio@cox.net>
Something went wrong with that request. Please try again.