]> git.ipfire.org Git - thirdparty/git.git/commit
backfill: die on incompatible filter options
authorDerrick Stolee <stolee@gmail.com>
Fri, 22 May 2026 18:24:30 +0000 (18:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 May 2026 09:41:06 +0000 (18:41 +0900)
commitbf24de4b7cd5f30b1539c8e8a25cca5b92d9b621
treebacda4a1d2fba3eb7d650e313dc864a511b05895
parent6d87f0e8a3bf3d718c7aaf3657cf3ce73c3bd026
backfill: die on incompatible filter options

The 'git backfill' command uses the path-walk API in a critical way: it
uses the objects output from the command to find the batches of missing
objects that should be requested from the server. Unlike 'git
pack-objects', we cannot fall back to another mechanism.

The previous change added the path_walk_filter_compatible() method that
we can reuse here. Use it during argument validation in cmd_backfill().

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/backfill.c
t/t5620-backfill.sh