           index.addByPath(path)
 
       index.write()
-    .then =>
-      @emitter.emit('did-update-repository')
 
   unstagePath: (path) ->
     @unstageAllPaths([path])

          mode: fileDiff.getMode()
        data.index.add(entry)
        data.index.write()
    .then =>
      @emitter.emit('did-update-repository')

  createIndexEntry: ({oid, path, fileSize, mode}) ->
    entry  = new Git.IndexEntry()


    newLines.unshift(newHeader)
    newLines.join("\n")

  indexBlob: (path) ->
    data = {}
