From: Junio C Hamano Date: Mon, 26 Oct 2015 22:55:24 +0000 (-0700) Subject: Merge branch 'jk/repository-extension' X-Git-Tag: v2.7.0-rc0~74 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fa46579555583a9799d8495f632b14cddd65db6e Merge branch 'jk/repository-extension' 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 --- fa46579555583a9799d8495f632b14cddd65db6e diff --cc builtin/prune.c index 10b03d3e4c,6a58e75108..8f4f052285 --- a/builtin/prune.c +++ b/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++;