2011年11月11日 星期五

2011年11月9日 星期三

svn diff 使用 vimdiff

首先寫好 wrapper,明名為 .svndiff_to_vimdiff

#!/bin/sh

# Configure your favorite diff program here.
DIFF="/usr/local/bin/vimdiff"

# Subversion provides the paths we need as the sixth and seventh
# parameters.
LEFT=${6}
RIGHT=${7}

# Call the diff command (change the following line to make sense for
# your merge program).
$DIFF $LEFT $RIGHT

# Return an errorcode of 0 if no differences were detected, 1 if some were.
# Any other errorcode will be treated as fatal.

資料來源:http://blog.tplus1.com/index.php/2007/08/29/how-to-use-vimdiff-as-the-subversion-diff-tool/



接下將 .svndiff_to_vimdiff 放在 ~ 底下



再於 ~/.cshrc 中加入 alias

alias svndiff 'svn diff \!* --diff-cmd ~/.svndiff_to_vimdiff'



從此就可以開心的使用 svndiff 指令取代 svn diff 摟!

example:

# svndiff file_path
# svndiff -r N:M file_path


Xdebug Profiler Tigger


http://www.example.com/testScript.php?XDEBUG_PROFILE=1


2011年11月8日 星期二

SVN Diff 忽略空白


# svn diff 檔名 --diff-cmd `which diff` -x "-w"