- 2008-10-10 (金) 20:45
- Debian | Linux | OS | Subversion
svnの内蔵diffコマンドをcolordiffコマンドに置き換えてみるとコンソールでも見やすいと思うのでやってみた。
sudo apt-get install colordiff
Debian etch では colordiff 1.0.6-2 がインストールされた。
$HOME/.colordiffrc ファイル
色変えてみただけ。
# Example colordiffrc file for dark backgrounds
#
# Set banner=no to suppress authorship info at top of
# colordiff output
banner=no
# By default, when colordiff output is being redirected
# to a file, it detects this and does not colour-highlight
# To make the patch file *include* colours, change the option
# below to ‘yes’
color_patches=no
#
# available colours are: white, yellow, green, blue,
# cyan, red, magenta, black,
# darkwhite, darkyellow, darkgreen,
# darkblue, darkcyan, darkred,
# darkmagenta, darkblack
#
# Can also specify ‘none’, ‘normal’ or ‘off’ which are all
# aliases for the same thing, namely "don’t colour highlight
# this, use the default output colour"
#
plain=off
newtext=green
oldtext=cyan
diffstuff=yellow
cvsstuff=blue
#
# Set banner=no to suppress authorship info at top of
# colordiff output
banner=no
# By default, when colordiff output is being redirected
# to a file, it detects this and does not colour-highlight
# To make the patch file *include* colours, change the option
# below to ‘yes’
color_patches=no
#
# available colours are: white, yellow, green, blue,
# cyan, red, magenta, black,
# darkwhite, darkyellow, darkgreen,
# darkblue, darkcyan, darkred,
# darkmagenta, darkblack
#
# Can also specify ‘none’, ‘normal’ or ‘off’ which are all
# aliases for the same thing, namely "don’t colour highlight
# this, use the default output colour"
#
plain=off
newtext=green
oldtext=cyan
diffstuff=yellow
cvsstuff=blue
svnの内蔵diffコマンドをcolordiffコマンドに置き換えてみる
$HOME/.subversion/config ファイル
:
:
[helpers]
diff-cmd = colordiff
:
:
:
[helpers]
diff-cmd = colordiff
:
:
さらにdiffコマンドにいろいろなオプションを渡したい場合は
svn diff -x "-i -w"
とか
svn diff -x -y
とかすれば良い。やったね!
参考:
- Newer: [Javascript][ExtJS] Ext.grid.GridView の行を特定の条件で背景色や文字色を変更する方法
- Older: [PC] Alert! Chipset heat sink not detected. System halted
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://blog.kaburk.com/os/linux/colordiff.html/trackback
- Listed below are links to weblogs that reference
- [Linux][Debian][Subversion] colordiff で svn diffを見やすくする from [ま]技術雑記



































