"프로젝트의 모든 파일에 대해"통합 diff 형식으로 "cvs diff"출력이 있습니다. 형식은 다음과 같이 될 수있다 :이 같은vim을 사용하여 두 열의 "cvs diff"출력보기
Index: somefile.cpp
===================================================================
RCS file: /CVS_repo/SomeProject/somefile.cpp,v
retrieving revision 1.19
diff -r1.19 somefile.cpp
31c31
< return "Read line four times";
---
> return "Read line five times";
36c36
< return "Make a bad thing";
---
> return "Make a good thing";
Index: otherfile.cpp
===================================================================
RCS file: /CVS_repo/SomeProject/otherfile.cpp,v
retrieving revision 1.19
< ........
---
> ........
또는 :
Index: somefile.cpp
===================================================================
RCS file: /CVS_repo/SomeProject/somefile.cpp,v
retrieving revision 1.19
diff -u -r1.19 somefile.cpp
--- somefile.cpp 13 Mar 2013 08:45:18 -0000 1.19
+++ somefile.cpp 26 Mar 2013 08:10:33 -0000
@@ -28,12 +28,12 @@
//---------------------------------------------------------------------------
extern "C" char *FuncGetSomeText()
{
- return "Read line four times";
+ return "Read line five times";
}
//---------------------------------------------------------------------------
extern "C" char *FuncGetAwesomeText()
{
- return "Make a bad thing";
+ return "Make a good thing";
}
//---------------------------------------------------------------------------
Index: otherfile.cpp
===================================================================
RCS file: /CVS_repo/SomeProject/otherfile.cpp,v
retrieving revision 1.19
diff -u -r1.19 otherfile.cpp
--- otherfile.cpp 13 Mar 2013 08:45:18 -0000 1.19
+++ otherfile.cpp 26 Mar 2013 08:10:33 -0000
@@ -28,12 +28,12 @@
//---------------------------------------------------------------------------
extern "C" char *Func()
{
- .......
+ .......
}
//---------------------------------------------------------------------------
정력으로이 텍스트를 나란히 볼 수있는 방법이 있나요? 또는 cvs의 기본 diff 도구를 vimdiff로 변경할 수 있습니까?
http://stackoverflow.com/questions/26195/vimdiff-and-cvs -integration –
감사합니다. 그러나이 솔루션은 저에게 효과적이지 않았습니다. 내 vim은 그의 6.3.71 버전으로 완전히 구식이다. 그는 알 수없는 winsave() 함수에 실패했습니다. 나는 winsave/winrestore 함수에 대해 주석을 달았지만, 이후에는 vim 창에 아무것도 없다 : D vim 명령. – Avega
자신의 질문에 대한 대답을 대답으로 게시해야합니다. –