"git repack --drop-filtered --dry-run" is documented to list objects that would be dropped "without rebuilding any pack or deleting anything". According to Shrimali, the --dry-run block in cmd_repack() prints the candidates and then falls through into the regular code. repack_promisor_objects() writes a new promisor pack, and with -d, existing_packs_remove_redundant() deletes the old packs. The command still exits successfully, so the user is not told that the repository changed.
The existing guard only skipped the implied "delete_redundant = 1", so it did not stop an explicit -d or the writing of the new pack. The patch returns immediately after printing the candidates.
Shrimali says the bug has existed since --dry-run was introduced in 1e746b00aa ("builtin/repack: add --drop-filtered and --dry-run"), because the block never returned early. He plans to record this in the v2 log message. He also agreed with Ben Knoble that the message would stop making sense without context, and plans to add a short code comment rather than rely on git blame.
Junio Hamano thanked Shrimali and Knoble for writing and reviewing and said he would mark the topic for 'next'. Knoble said he was happy with the version and that Hamano could add his Reviewed-by. Shrimali still said a v2 was coming.