 StatusView = require './status-view'
 
 module.exports =
+  currentPane: null
+  dir: ''
+  commitFilePath: -> @dir + '/.git/COMMIT_EDITMSG'
+
   activate: (state) ->
     @dir = atom.project.getRepo().getWorkingDirectory()
-    @commitFilePath = @dir + '/.git/COMMIT_EDITMSG'
+    @commitFilePath()
     atom.workspaceView.command "git-plus:commit", => @gitStatus()
 
   deactivate: ->

    # gitPlusViewState: @gitPlusView.serialize()

  gitStatus: ->
    process = new BufferedProcess({
      command: 'git'
      args: ['status']

    text = text.replace(/\n/g, "\n# ")
    # in order to make sure each line doesn't start with a space, the preceding
    #   line should end with a backslash
    new File(@commitFilePath())
      .write " \n\
       # Please enter the commit message for your changes. Lines starting\n\
       # with '#' will be ignored, and an empty message aborts the commit.\n\
