Skip to content

Instantly share code, notes, and snippets.

@migrs
Created Dec 13, 2012
Embed
What would you like to do?
特定のリビジョンのファイルを Vim シンタックスハイライト付きで閲覧する
#!/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