Created
December 13, 2012 05:06
-
-
Save migrs/4274177 to your computer and use it in GitHub Desktop.
特定のリビジョンのファイルを Vim シンタックスハイライト付きで閲覧する
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/sh | |
git show $1 | vim -R +"f $1" +"filetype detect" - | |
# Install: | |
# copy to $PATH and chmod +x | |
# | |
# Usage: | |
# git view <revision>:<path/to/file> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment