   #
   # Returns the active selection as {Object}.
   selection: ->
-    @active_list.selection()
+    @activeList.selection()
 
   leaf: ->
-    @active_list.leaf()
+    @activeList.leaf()
 
   # Internal: The commit message file path.
   #

    atom.project.getRepo().getReferences().heads.length

  fetch: ->
    git.incrementTaskCounter()
    git.remoteFetch 'origin', ->
      git.decrementTaskCounter()

  checkoutBranch: ->
    @branchList.checkout_branch

  stash: ->
    git.git 'stash'

  stashPop: ->
    git.git 'stash pop'

  # Internal: Initiate a new commit.
  initiateCommit: ->
    if atom.config.get('atomatigit.pre_commit_hook') isnt ''
      atom.workspaceView.trigger(atom.config.get('atomatigit.pre_commit_hook'))

    fs.writeFileSync(@commitMessagePath(), '')


  initiateCreateBranch: ->
    @trigger 'need_input',
      query: 'Branch name'
      callback: (name) -> git.cmd "checkout -b #{name}"

  # Public: Initiate a user defined git command.
  initiateGitCommand: ->
