Merge branch 'bc/sha1-256-interop-01'

The beginning of SHA1-SHA256 interoperability work.

* bc/sha1-256-interop-01:
  t1010: use BROKEN_OBJECTS prerequisite
  t: allow specifying compatibility hash
  fsck: consider gpgsig headers expected in tags
  rev-parse: allow printing compatibility hash
  docs: add documentation for loose objects
  docs: improve ambiguous areas of pack format documentation
  docs: reflect actual double signature for tags
  docs: update offset order for pack index v3
  docs: update pack index v3 format
This commit is contained in:
Junio C Hamano
2025-10-22 11:38:58 -07:00
15 changed files with 255 additions and 32 deletions

View File

@@ -1107,11 +1107,20 @@ int cmd_rev_parse(int argc,
const char *val = arg ? arg : "storage";
if (strcmp(val, "storage") &&
strcmp(val, "compat") &&
strcmp(val, "input") &&
strcmp(val, "output"))
die(_("unknown mode for --show-object-format: %s"),
arg);
puts(the_hash_algo->name);
if (!strcmp(val, "compat")) {
if (the_repository->compat_hash_algo)
puts(the_repository->compat_hash_algo->name);
else
putchar('\n');
} else {
puts(the_hash_algo->name);
}
continue;
}
if (!strcmp(arg, "--show-ref-format")) {