From: Joie Joie Date: Fri, 06 Nov 2026 17:44:49 GMT Subject: [Outreachy] fast-import: Use repo_for_each_pack() for duplicate checks Message-ID: Hi Patrick, I was looking through `fast-import.c` and noticed that both `store_object()` and `stream_blob()` still loop through `files->dirs` to check whether an object is already in a pack. I saw that Git already has `repo_for_each_pack()`, which is used in places like `count-objects.c` and `pack-objects.c`. Would it be worth using that iterator in these two places instead? The idea would be to avoid accessing the files backend directly while keeping the current packed-object lookup and duplicate-handling behavior unchanged. I haven't made any changes yet. I wanted to get your thoughts first and check whether this would be a useful follow-up in the current refactoring work. Thanks! Joy