Merge branch 'jk/repository-extension'
authorJunio C Hamano <gitster@pobox.com>
Mon, 26 Oct 2015 22:55:24 +0000 (15:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Oct 2015 22:55:25 +0000 (15:55 -0700)
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
index 10b03d3e4cb5ced78118251ac390dd6a33f9a71b,6a58e75108c2f5dd9d6777fee92f6d948c89a13f..8f4f0522856b988a8798fd65c6d81d8826709aa2
@@@ -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