summaryrefslogtreecommitdiffstats
path: root/delta-islands.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2023-10-02 04:40:27 +0200
committerJunio C Hamano <gitster@pobox.com>2023-10-02 23:57:40 +0200
commitd6222a2d05c93b22d5ef19b7361f7b1ef2964eb4 (patch)
tree3ea25fc1bc7bdb7191b92cf17540651d663da9e4 /delta-islands.c
parentrev-parse: add an --output-object-format parameter (diff)
downloadgit-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