Created
March 28, 2011 11:27
-
-
Save oshow/890311 to your computer and use it in GitHub Desktop.
gitのdiff toolにdocdiffを設定する時の各ファイルの内容
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
◆docdiff.sh(ラッパー) | |
#!/bin/sh | |
[ $# -eq 7 ] && docdiff.rb --tty --digest "$2" "$5" | |
参考:http://twitter.com/#!/kdmsnr/status/16634034079 | |
◆.gitconfig(の一部) | |
[diff "docdiff"] | |
command = docdiff.sh | |
◆.gitattributes(プロジェクトディレクトリで使う) | |
translation.txt diff=docdiff |
diff toolというか、diffドライバって言うのかな。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
これでtranslation.txtをgit diffしようとすると、自動的にdocdiff.rbが使われるようになる。