 moment = require 'moment'
 {formatDate} = require '../util/blameFormatter'
 errorController = require '../controllers/errorController'
+shell = require 'shell'
 
 HASH_LENGTH = 7  # github uses this length
 BLANK_HASH = '-'.repeat(HASH_LENGTH)


  componentDidMount: ->
    $el = $(@getDOMNode())
    if @props.summary
      atom.tooltips.add($el,
        title: @props.summary
        placement: "auto left"
      )


  componentWillUnmount: ->
    $(@getDOMNode()).tooltip "destroy"

          a onClick: @didClickHashWithoutUrl, className: 'hash', @props.hash.substring(0, HASH_LENGTH)
        else
          url = @props.remoteRevision.url @props.hash
          a href: '#', 'data-url': url, className: 'hash', @props.hash.substring(0, HASH_LENGTH)
        span className: 'date', @props.date
        span className: 'committer text-highlight',
          if @props.showOnlyLastNames
