[팁] 리눅스상에서 svn diff 비교 쉽게 하기 > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

[팁] 리눅스상에서 svn diff 비교 쉽게 하기 정보

기타 [팁] 리눅스상에서 svn diff 비교 쉽게 하기

본문

쉘상에서 svn diff 시 너무 많은 영역이 수정되었을때 + - 가지고만 비교 하기에는 한계가 있어서 vimdiff 를 사용 하여 svn 과 연동하는 방법입니다.


Example 7.2. diffwrap.sh

#!/bin/sh

# Configure your favorite diff program here.
DIFF="/usr/local/bin/my-diff-tool"

# 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 $LEFT --right $RIGHT

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

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로