use an internal copy of git index entries, using a smart pointer on them