Created
January 6, 2017 20:41
-
-
Save noahsark769/b09be124692594d60c262498580de006 to your computer and use it in GitHub Desktop.
Get history of line in file from git
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
# Usage: blameline <filename> <line number> | |
function blameline { | |
cmd="git log -u -L $2,$2:$1" | |
echo $cmd | |
$cmd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment