SLOOP

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

· 2012-04-23 (월) 18:43:05 · 1727

쉘상에서 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.
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
12-04-23 조회 2,469
12-04-22 조회 1,294
12-04-19 조회 1,215
12-04-18 조회 2,272
12-04-18 조회 1,029
12-04-17 조회 1,349
12-04-17 조회 3,117
12-04-16 조회 1,396
12-04-13 조회 998
12-04-09 조회 1,055
12-04-04 조회 1,889
12-04-01 조회 1,084
12-03-31 조회 1,445
12-03-30 조회 1,159
12-03-30 조회 1,810
12-03-26 조회 1,358
12-03-26 조회 1,030
12-03-22 조회 1,159
12-03-21 조회 1,008
12-03-19 조회 1,527
12-03-17 조회 1,523
12-03-14 조회 1,232
12-03-10 조회 1,843
12-03-09 조회 1,453
12-03-09 조회 1,187