diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2023-10-02 04:40:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-10-02 23:57:40 +0200 |
commit | d6222a2d05c93b22d5ef19b7361f7b1ef2964eb4 (patch) | |
tree | 3ea25fc1bc7bdb7191b92cf17540651d663da9e4 /delta-islands.c | |
parent | rev-parse: add an --output-object-format parameter (diff) | |
download | git-d6222a2d05c93b22d5ef19b7361f7b1ef2964eb4.tar.xz git-d6222a2d05c93b22d5ef19b7361f7b1ef2964eb4.zip |
builtin/cat-file: let the oid determine the output algorithm
Use GET_OID_HASH_ANY when calling get_oid_with_context. This
implements the semi-obvious behaviour that specifying a sha1 oid shows
the output for a sha1 encoded object, and specifying a sha256 oid
shows the output for a sha256 encoded object.
This is useful for testing the the conversion of an object to an
equivalent object encoded with a different hash function.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'delta-islands.c')
0 files changed, 0 insertions, 0 deletions