mirror of
https://github.com/atom/atom.git
synced 2026-02-07 13:14:55 -05:00
Make project's Git repository a window global
This allows it to operate independently of the project and mirror the availability of the root view and project.
This commit is contained in:
@@ -419,12 +419,10 @@ class Buffer
|
||||
return match[0][0] != '\t'
|
||||
undefined
|
||||
|
||||
getRepo: -> @project?.repo
|
||||
|
||||
checkoutHead: ->
|
||||
path = @getPath()
|
||||
return unless path
|
||||
if @getRepo()?.checkoutHead(path)
|
||||
if git?.checkoutHead(path)
|
||||
@trigger 'git-status-changed'
|
||||
|
||||
scheduleStoppedChangingEvent: ->
|
||||
|
||||
Reference in New Issue
Block a user