123
123
if not blob.id in self.repository._git.object_store:
124
124
self.repository._git.object_store.add_object(blob)
125
125
# Add an entry to the index or update the existing entry
126
(mode, ino, dev, links, uid, gid, size, atime, mtime, ctime) = stat_val
128
self.index[path.encode("utf-8")] = (ctime, mtime, ino, dev, mode, uid, gid, size, blob.id, flags)
127
self.index[path.encode("utf-8")] = (stat_val.st_ctime, stat_val.st_mtime, stat_val.st_dev, stat_val.st_ino, stat_val.st_mode, stat_val.st_uid, stat_val.st_gid, stat_val.st_size, blob.id, flags)
131
130
# TODO: Maybe this should only write on dirty ?