Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadowhand/git-blameurl
Github Blame URLs for Git Files
https://github.com/shadowhand/git-blameurl
Last synced: 11 days ago
JSON representation
Github Blame URLs for Git Files
- Host: GitHub
- URL: https://github.com/shadowhand/git-blameurl
- Owner: shadowhand
- License: mit
- Created: 2015-02-07T17:54:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-07T18:02:36.000Z (almost 10 years ago)
- Last Synced: 2024-12-25T05:57:38.865Z (17 days ago)
- Language: Shell
- Homepage:
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# git-blameurl
Get the Github blame URL for any file in the repository. Works best when combined with other scripts.
## Examples
```bash
git blameurl
git blameurl public/index.html
```### On Mac
git-blameurl works very well with the `open` command:
```bash
open $(git blameurl)
open $(git blameurl public/index.html)
```#### With VIM
Can be used with VIM to open a file at a given line:
```vim
" Copy the current blame url for this file/line
command! -nargs=0 CopyBlameURL exe "!echo $(git blameurl %)\\\#L" . line(".") . " | pbcopy"" Open the blame url for this file/line
command! -nargs=0 OpenBlameURL exe "!open $(git blameurl %)\\\#L" . line(".")
```