SLOOP

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

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

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

개발자팁

5,403건

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

+
분류 제목 글쓴이 날짜 조회
Linux 12-05-10 조회 2,129
Linux 12-05-10 조회 1,842
Linux 12-05-10 조회 2,878
Linux 12-05-10 조회 1,946
MySQL 12-05-10 조회 3,035
기타 12-05-09 조회 5,506
기타 12-05-08 조회 2,579
JavaScript 12-05-08 조회 4,037
Linux 12-05-08 조회 2,556
Linux 12-05-08 조회 1,642
Linux 12-05-08 조회 1,886
Linux 12-05-08 조회 2,663
Linux 12-05-08 조회 4,431
PHP 12-05-07 조회 1,971
기타 12-05-07 조회 3,804
jQuery 12-05-07 조회 4,388
기타 12-05-07 조회 2,112
MySQL 12-05-06 조회 3,137
기타 12-05-06 조회 2,421
PHP 12-05-05 조회 2,401
PHP 12-05-05 조회 2,696
PHP 12-05-05 조회 2,342
MySQL 12-05-04 조회 2,268
JavaScript 12-05-04 조회 2,225
PHP 12-05-04 조회 3,178
Linux 12-05-03 조회 1,431
기타 12-05-03 조회 2,321
Linux 12-05-03 조회 1,758
Linux 12-05-03 조회 1,686
PHP 12-05-03 조회 2,405