OSDN Git Service

Merge branch 'jk/repository-extension' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 3 Nov 2015 23:32:25 +0000 (15:32 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Nov 2015 23:32:25 +0000 (15:32 -0800)
Prepare for Git on-disk repository representation to undergo
backward incompatible changes by introducing a new repository
format version "1", with an extension mechanism.

* jk/repository-extension:
  introduce "preciousObjects" repository extension
  introduce "extensions" form of core.repositoryformatversion

1  2 
builtin/gc.c
builtin/prune.c
builtin/repack.c
cache.h
environment.c
setup.c

diff --cc builtin/gc.c
Simple merge
diff --cc builtin/prune.c
@@@ -119,6 -211,16 +119,9 @@@ int cmd_prune(int argc, const char **ar
  
        argc = parse_options(argc, argv, prefix, options, prune_usage, 0);
  
 -      if (do_prune_worktrees) {
 -              if (argc)
 -                      die(_("--worktrees does not take extra arguments"));
 -              prune_worktrees();
 -              return 0;
 -      }
 -
+       if (repository_format_precious_objects)
+               die(_("cannot prune in a precious-objects repo"));
        while (argc--) {
                unsigned char sha1[20];
                const char *name = *argv++;
Simple merge
diff --cc cache.h
Simple merge
diff --cc environment.c
Simple merge
diff --cc setup.c
Simple merge