Add an .idx file (associated to a packfile) to the writer.
.idx
The writer.
The repository that owns the .idx file.
The path of an .idx file.
0 or an error code