mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user