Skip to content

Instantly share code, notes, and snippets.

@donatj
Created June 21, 2017 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donatj/f5e9d2e5389fb21ff37152ca613f6aec to your computer and use it in GitHub Desktop.
Save donatj/f5e9d2e5389fb21ff37152ca613f6aec to your computer and use it in GitHub Desktop.
Find the pull request a line of a file was added with
#!/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