테스트 사이트 - 개발 중인 베타 버전입니다

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

· 13년 전 · 1501

쉘상에서 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.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
12333
12332
12331
12329
12328
12327
12326
12325
12324
12323
12322
12321
12320
12319
12318
12317
12316
12315
12314
12313
12312
12311
12310
12309
12308