Enable git-diffs by default

This commit is contained in:
Kevin Sawicki
2013-04-25 09:35:11 -07:00
parent 00cb0bb8d9
commit faaaa538a9
3 changed files with 3 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
* Added: Editor gutter now displays Git status for lines
* Improved: Startup time
* Added: SQL bundle now included
* Added: PEG.js bundle now included

View File

@@ -1,12 +1,8 @@
GitDiffView = require './git-diff-view'
module.exports =
configDefaults:
enabled: false
activate: ->
return unless git?
return unless config.get('git-diff.enabled')
rootView.eachEditor (editor) =>
new GitDiffView(editor) if git? and editor.getPane()?
new GitDiffView(editor) if git? and editor.attached and editor.getPane()?

View File

@@ -5,7 +5,6 @@ describe "GitDiff package", ->
editor = null
beforeEach ->
config.set('git-diff.enabled', true)
window.rootView = new RootView
rootView.attachToDom()
rootView.open('sample.js')