> So instead of generating state by doing API requests, this would generate state from code in git, which does not necessarily represent the real world state of resources.
What you're talking about here is unrelated to whether the state comes from regular Terraform state or if it's generated using the source code, as the refresh phase should happen during both.