OSDN Git Service

Merge branch 'bc/repack'
authorJunio C Hamano <gitster@pobox.com>
Fri, 23 May 2008 23:06:01 +0000 (16:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 May 2008 23:06:01 +0000 (16:06 -0700)
* bc/repack:
  Documentation/git-repack.txt: document new -A behaviour
  let pack-objects do the writing of unreachable objects as loose objects
  add a force_object_loose() function
  builtin-gc.c: deprecate --prune, it now really has no effect
  git-gc: always use -A when manually repacking
  repack: modify behavior of -A option to leave unreferenced objects unpacked

Conflicts:

builtin-pack-objects.c

1  2 
Documentation/git-repack.txt
builtin-pack-objects.c
cache.h
git-repack.sh

Simple merge
@@@ -66,8 -66,7 +67,8 @@@ static struct pack_idx_entry **written_
  static uint32_t nr_objects, nr_alloc, nr_result, nr_written;
  
  static int non_empty;
 -static int no_reuse_delta, no_reuse_object, keep_unreachable, unpack_unreachable, include_tag;
 +static int reuse_delta = 1, reuse_object = 1;
- static int keep_unreachable, include_tag;
++static int keep_unreachable, unpack_unreachable, include_tag;
  static int local;
  static int incremental;
  static int allow_ofs_delta;
diff --cc cache.h
Simple merge
diff --cc git-repack.sh
@@@ -8,10 -8,9 +8,10 @@@ OPTIONS_SPEC="
  git-repack [options]
  --
  a               pack everything in a single pack
- A               same as -a, and keep unreachable objects too
+ A               same as -a, and turn unreachable objects loose
  d               remove redundant packs, and run git-prune-packed
  f               pass --no-reuse-delta to git-pack-objects
 +n               do not run git-update-server-info
  q,quiet         be quiet
  l               pass --local to git-pack-objects
   Packing constraints