Created
June 21, 2017 14:46
-
-
Save donatj/f5e9d2e5389fb21ff37152ca613f6aec to your computer and use it in GitHub Desktop.
Find the pull request a line of a file was added with
This file contains 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
#!/bin/bash | |
set -e | |
blame=$(git blame "$1" -L "$2,$2" -p) | |
open "https://github.com/search?type=Issues&q=${blame:0:40}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment