head.get -> head.read
head.set -> head.write
refs.set -> refs.write
index.get -> index.read
index.set -> index.write