Warning: Undefined array key "REMOTE_USER" in /kieuns/www/lib/plugins/googleanalytics/action.php on line 61 WinMerge의 파일 필터 작성 [GINS WIKI 긴스 위키] Warning: Undefined array key "stylesheets" in /kieuns/www/inc/StyleUtils.php on line 102

사용자 도구

사이트 도구


tool:winmerge
Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1164 Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1168 Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1171 Warning: Trying to access array offset on value of type bool in /kieuns/www/inc/html.php on line 1172

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
tool:winmerge [2013/07/25 11:20]
kieuns
tool:winmerge [2024/04/23 22:43] (현재)
줄 1: 줄 1:
 +====== WinMerge의 파일 필터 작성 ======
  
 +  * 주석 : ## 으로 시작
 +
 +설명 섹션
 +
 +  = name : 필터의 이름
 +  = desc : 필터 설명
 +
 +<code>
 +name: Sample Filter
 +desd: Sample Filter ## 넣지 않아도 된다.
 +</code>
 +  
 +필터 설정 섹션
 +
 +  * **def** : 포함시키는 것들과 무시할 것들에 대한 필터링 종류를 설정
 +    * include : 모든 파일 포함 + 추가 룰에 정의된 파일의 제외
 +    * exclude : 모든 파일 무시 + 추가 룰에 정의된 파일만 포함
 +
 +<code>
 +def:include ## 모든 파일을 포함하는 필터
 +</code>
 +
 +필터에 포함한 파일 형식
 +
 +  * **f:** //정규식// : 파일에 대한 추가룰
 +  * **d:** //정규식// : 폴더에 대한 추가룰
 +
 +정규식 부분에서 중요한 부분
 +
 +  * **^(beginning of line)** : \\ 종종 필요할때가 있다고 하네.
 +  * **$(end of line)** : \\ 자주 사용하는 듯 <code>
 +\.c$ ## 확장자가(마지막부분이) .c 로 끝나는 것들만 해당된다.
 +\.c  ## 확장자 부분이 .c 로 시작되는 것들에 (.cpp 나 .com 처럼) 적용된다. 
 +</code>
 +  * **\(escape)** : \\ 특수문자를 일반 문자로 사용하려고 할때 사용한다. \\ %%\\%% 는 \ 문자를 사용하기 위해서 \\ %%\.%% '.'을 문자로 인식하기 위해서 사용한다.
 +    * 폴더의 경우 "\Debug" 를 인식하게 하기 위해서 <code>
 +d: \\Debug ## 와 같이 쓸 수 있다.
 +</code>
 +
 +===== Example =====
 +
 +예제 1 :
 +
 +<code>
 +f: \.cpp$ ## Match *.cpp files
 +f: \.h$ ## Match *.h files
 +f: ^My ## Match My*.* files
 +f: Dlg\. ## Match *Dlg.* files
 +d: \\test$ ## Match test folders
 +d: ^\\Build$ ## Match Build folders
 +d: Temp$ ## Match *Temp folders (for example, FirstTemp)
 +d: Src ## Match *Src* folders
 +</code>
 +
 +예제 2 :
 +
 +<code>
 +f: ^\.#.*$ ## .#filename.version files
 +f: Dlg\.c(pp)?$ ## *Dlg.c and *Dlg.cpp files
 +f: ^I.*\.h$ ## I*.h files
 +f: Srv[1-9]\.def$ ## *Srv1.def to *Srv9.def files
 +f: ^[h,k,m] ## h*.*, k*.*, and m*.* files
 +</code>