Don't use blame
because git blame
only shows the LAST commit of that particular line.
- Install sublime-text-git
shift + command + p
in Sublime- Type in
Custom command
- Select
Git: Custom Command
. It'll open a panel at the bottom of Sublime. - Type in
log -L START_LINE_NUMBER,END_LINE_NUMBER:CURRENT_FILE_NAME.EXT
For example: log -L 1,1:index.js
will show the git history for line #1 of index.js
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. require/import | |
// ES5: require | |
var React = require('react'); | |
var { Component, PropTypes } = React; | |
// ES6: import | |
import React, { Component, PropTypes } from 'react'; | |
// 2. Module import/export |