]> git.ipfire.org Git - thirdparty/git.git/commit - bundle.c
bundle: output hash information in 'verify'
authorDerrick Stolee <derrickstolee@github.com>
Tue, 22 Mar 2022 17:28:39 +0000 (17:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Mar 2022 20:14:09 +0000 (13:14 -0700)
commit8ba221e2453658f8843176cc00fc5cfe36e07b41
treefb0b617fe1730daa3b6ebe2b593e414a5480976f
parent017303eb483c48515095abcabf024101951f82ae
bundle: output hash information in 'verify'

The previous change moved the 'filter' capability to the end of the 'git
bundle verify' output. Now, add the 'object-format' capability to the
output, when it exists.

This change makes 'git bundle verify' output the hash used in all cases,
even if the capability is not in the bundle. This means that v2 bundles
will always output that they use "sha1". This might look noisy to some
users, but it does simplify the implementation and the test strategy for
this feature.

Since 'verify' ends early when a prerequisite commit is missing, we need
to insert this hash message carefully into our expected test output
throughout t6020.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c
t/t6020-bundle-misc.sh