         @cleanup()
         new StatusView(type: 'error', message: 'Nothing to commit.')
 
-  # FIXME?: maybe I shouldn't use the COMMIT file in .git/
+  # Public: Prepares our commit message file by writing the status and a
+  #         possible amend message to it.
+  #
+  # status - The current status as {String}.
   prepFile: (status) ->
     # format the status to be ignored in the commit message
     status = status.replace(/\s*\(.*\)\n/g, '')

      stderr: (err) =>
        if @isAmending then @undoAmend() else @cleanup()

  destroyActiveEditorView: ->
    if atom.workspace.getActivePane().getItems().length > 1
      atom.workspace.destroyActivePaneItem()
    else
      atom.workspace.destroyActivePane()

  undoAmend: (err='') ->
    git.cmd
      args: ['reset', 'ORIG_HEAD'],

module.exports =
class GitCommit extends Model

  # Public: Helper method to return the name of the file we should write our
  #         commit message to.
  #
  # Returns: The filename as {String}.
  file: ->
    # git puts submodules in a `.git` folder named after the child repo
    if @submodule ?= git.getSubmodule()
