summaryrefslogtreecommitdiff
path: root/builtin/repack.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-11-03 23:32:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-11-03 23:32:25 (GMT)
commitf89baca1b99ff2882690d6b58dc2071195c6ae84 (patch)
tree2901be0d9c8d2b46710fe97681b66b116127fd96 /builtin/repack.c
parentb05c2f9ed48adfd9670b28ecdd5c55a4e4698704 (diff)
parent067fbd4105c5aa8260a73cc6961854be0e93fa03 (diff)
downloadgit-f89baca1b99ff2882690d6b58dc2071195c6ae84.zip
git-f89baca1b99ff2882690d6b58dc2071195c6ae84.tar.gz
git-f89baca1b99ff2882690d6b58dc2071195c6ae84.tar.bz2
Merge branch 'jk/repository-extension' into maint
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
Diffstat (limited to 'builtin/repack.c')
-rw-r--r--builtin/repack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/repack.c b/builtin/repack.c
index 70b9b1e..9456110 100644
--- a/builtin/repack.c
+++ b/builtin/repack.c
@@ -193,6 +193,9 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
argc = parse_options(argc, argv, prefix, builtin_repack_options,
git_repack_usage, 0);
+ if (delete_redundant && repository_format_precious_objects)
+ die(_("cannot delete packs in a precious-objects repo"));
+
if (pack_kept_objects < 0)
pack_kept_objects = write_bitmaps;