]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/cat-file-remote-object-info'
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:32:04 +0000 (10:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:32:04 +0000 (10:32 -0700)
commite1fb641cfa96fb2fcbe1526fd6ccd7a76d84f1f9
tree06faf691097e97ddaa0e3895d8e2d8cc25fc3d2a
parentab7ed92d6cd704979f818eefc3ebe46d7d6f5afd
parentdd1968bf84def5453886ab7320c44c18f4d03005
Merge branch 'ps/cat-file-remote-object-info'

The 'remote-object-info' command has been added to 'git cat-file
--batch-command', allowing clients to request object metadata
(currently size) from a remote server via protocol v2 without
downloading the entire object.  Format placeholders are dynamically
filtered on the client based on server-advertised capabilities,
returning empty strings for inapplicable or unsupported fields.

* ps/cat-file-remote-object-info:
  cat-file: make remote-object-info allow-list adapt to the server
  cat-file: add remote-object-info to batch-command
  transport: add client support for object-info
  serve: advertise object-info feature
  protocol-caps: check object existence regardless of the attributes requested
  fetch-pack: move fetch initialization
  connect: make write_fetch_command_and_capabilities() more generic
  fetch-pack: move write_fetch_command_and_capabilities() to connect.c
  fetch-pack: use unsigned int for hash_algo variable
  fetch-pack: drop the static advertise_sid variable
  t1006: extract helper functions into new 'lib-cat-file.sh'
  cat-file: declare loop counter inside for()
  transport-helper: fix memory leak of helper on disconnect
Makefile
builtin/cat-file.c
connect.c
meson.build
object-file.c
odb.h
t/meson.build
t/t1006-cat-file.sh
t/t5701-git-serve.sh
transport-helper.c