This patch teaches "git unpack-objects" to use a lower memory footprint for "get_data()" in dry-run mode since the returned data is not used. This patch is separeted from "[PATCH v12 0/8] unpack-objects: support streaming blobs to disk"[1] because it has less impact and less controversy on existing ones. 1. https://lore.kernel.org/git/cover-v12-0.8-00000000000-20220329T135446Z-avarab@xxxxxxxxx/ Han Xin (1): unpack-objects: low memory footprint for get_data() in dry_run mode builtin/unpack-objects.c | 34 ++++++++++++++++++--------- t/t5351-unpack-large-objects.sh | 41 +++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 11 deletions(-) create mode 100755 t/t5351-unpack-large-objects.sh -- 2.36.1