]> git.ipfire.org Git - thirdparty/git.git/commit
send-pack: honor `no-ref-delta` capability
authorTaylor Blau <ttaylorr@openai.com>
Mon, 13 Jul 2026 01:12:07 +0000 (18:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jul 2026 01:39:03 +0000 (18:39 -0700)
commit90202ce6e1da1d8fe46fdb7a1ccd1dd2d598b70c
treea6641a7a395f316b3e0e94d482a3479595b38033
parentaca978d38668f74766e14cd75b4461ae356e47bb
send-pack: honor `no-ref-delta` capability

Add a 'no-ref-delta' receive-pack capability and teach send-pack to pass
'--no-ref-delta' to 'pack-objects' when the server advertises it.

Keep this separate from 'ofs-delta' so that a server may request that
`send-pack` omit `REF_DELTA` without also accepting `OFS_DELTA`.

Signed-off-by: Taylor Blau <ttaylorr@openai.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitprotocol-capabilities.adoc
builtin/receive-pack.c
send-pack.c
send-pack.h
t/t5516-fetch-push.sh