commit a index file