summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-12-10 13:52:19 +0100
committerJunio C Hamano <gitster@pobox.com>2025-12-11 12:09:58 +0900
commitb3bab9d2729fde1f52c407447711c34a75c5c377 (patch)
tree7fd740e1fe8cb515ca79bf8fc1fe803e7d1b1ab6 /contrib/persistent-https
parent665d19ec7bcc2d578e2fa2701f7399a6a965b086 (diff)
downloadgit-b3bab9d2729fde1f52c407447711c34a75c5c377.tar.gz
git-b3bab9d2729fde1f52c407447711c34a75c5c377.zip
midx-write: extract function to test whether MIDX needs updating
In `write_midx_internal()` we know to skip writing the new multi-pack index in case it would be the same as the existing one. This logic does not handle the `--stdin-packs` option yet though, so we end up always rewriting the MIDX if that option is passed to us. Extract the logic to decide whether or not to rewrite the MIDX into a separate function. This will allow us to extend that feature in the next commit to address the above issue. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions