mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Enable git-diffs by default
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()?
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user