     proc.process.on 'error', (err) ->
       handler(new GitNotFoundError(errMessage.join("\n")), null)
 
-  @isStaged: (filepath, handler) ->
-    return unless @_checkHealth(handler, filepath)
+  @isStaged: (repo, filepath, handler) ->
+    return unless @_checkHealth(handler)
 
     staged = true
 

    proc = @process({
      command: GitCmd,
      args: ['status', '--porcelain', filepath],
      options: { cwd: @_repoWorkDir() },
      stdout: stdoutHandler,
      stderr: stderrHandler,
      exit: exitHandler

    proc.process.on 'error', (err) ->
      callback(new GitNotFoundError)

  @add: (repo, filepath, callback) ->
    return unless @_checkHealth(callback)

    @process({
      command: GitCmd,
      args: ['add', filepath],
      options: { cwd: repo.getWorkingDirectory() },
      stdout: (line) -> console.log line
      stderr: (line) -> console.log line
      exit: (code) ->
