mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-20 23:54:45 -05:00
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. The client dynamically filters format placeholders based on server-advertised capabilities and safely returns empty strings for inapplicable or unsupported fields. * ps/cat-file-remote-object-info: cat-file: make remote-object-info allow-list dynamic cat-file: validate remote atoms with allow_list cat-file: add remote-object-info to batch-command transport: add client support for object-info serve: advertise object-info feature fetch-pack: move fetch initialization connect: refactor packet writing fetch-pack: move function to connect.c t1006: split test utility functions into new "lib-cat-file.sh" cat-file: add declaration of variable i inside its for loop git-compat-util: add strtoul_ul() with error handling transport-helper: fix memory leak of helper on disconnect