index: make GIT_IDXENTRY a real enum

The documentation has shown this as a single enum for a long time. We
should simply make it a real enum.