How to index a "reference" repository and apply to duplicates?

Hi all, I’ve been trying to find an answer to this but seems I’m mostly alone.

I work mostly on a big repository, which I have cloned in four different directories. Basically, I have project1/, project2/, project3/ and project4/. Sometimes I have 2 or 3 Cursor windows opened, one to each directory.

Is it possible to run a code base indexing on project0/ and reuse it on the other four? They all share the same source code and are only different in their active branches.