+{CompositeDisposable} = require "atom"
+
 class GitView extends HTMLElement
   initialize: ->
     @classList.add('git-view')

    @activeItemSubscription = atom.workspace.onDidChangeActivePaneItem =>
      @subscribeToActiveItem()
    @projectPathSubscription = atom.project.onDidChangePaths =>
      @subscribeToRepo()
    @subscribeToRepo()
    @subscribeToActiveItem()

  createBranchArea: ->

    else
      not @getActiveItem()?

  updateAheadBehindCount: (repo) ->
    itemPath = @getActiveItemPath()

    if repo? and @showBranchInformation()
      {ahead, behind} = repo.getCachedUpstreamAheadBehindCount(itemPath) ? {}
