对 CVS 使用不同的 diff 命令?

发布于 2024-07-14 18:35:35 字数 291 浏览 6 评论 0 原文

是否可以在 CVS 中使用不同的 diff 程序? 我想使用像 meld 这样的东西来为我提供存储库和我的更改的并排图形视图。 使用不同的 CMS 是我无法控制的。 理想的是一些未记录的命令行参数,其工作方式如下:

cvs diff -prog /usr/bin/meld foo.cc

这将为我提供我签出的、修改后的 foo.cc 版本与存储库版本的差异,但使用 diff 程序融合。

我意识到没有记录的命令行参数不太可能,所以如果你必须将它组合在一起,这对我有用。

Is it possible to use a different diff program with CVS? I'd like to use something like meld to give me a side-by-side graphical view of the repository and my changes. It's out of my control to use a different CMS. What would be ideal is some undocumented command line argument that would work like this:

cvs diff -prog /usr/bin/meld foo.cc

This would give me a diff of my checked out, modified version of foo.cc with the repository version, but using the diff program meld.

I realize an undocumented command line argument is unlikely, so if you have to hack it together, that works for me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

瑾夏年华 2024-07-21 18:35:35

我使用 tkcvs 和 tkdiff (也不是最新版本)

最酷的是 tkcvs 还支持 subversion。

tkdiff 在命令行上工作并接受 cvs 标签...

  • tkdiff -rfoo_v5_0 -rfoo_v6_5silly.c (比较与本地目录中的版本不同的两个版本)
  • tkdiff spring.h (将我的本地版本与存储库进行比较)
  • tkdiff -r1 .6 happy.c(将我的本地版本与特定存储库版本进行比较)

I use tkcvs and tkdiff (not the lastest version either)

the cool thing is that tkcvs also supports subversion.

tkdiff works on the command line and takes cvs tags...

  • tkdiff -rfoo_v5_0 -rfoo_v6_5 silly.c (compare two different versions than the one in your local directory)
  • tkdiff spring.h (compare my local version to the repository)
  • tkdiff -r1.6 happy.c (compare my local version to a specific repository version)
不羁少年 2024-07-21 18:35:35

如果您使用 WinCVS,您可以设置一个 Diff 应用程序,例如 WinMerge 在首选项中。

在 WinCVS 首选项中,选项卡 WinCVS、“外部差异程序”

If you use WinCVS, you can setup a Diff application such as WinMerge in the preferences.

In WinCVS preferences, tab WinCVS, "External diff program"

简美 2024-07-21 18:35:35

我终于找到了 Vim 的 cvsmenu 插件。 它对我来说就像一种魅力。

I finally found the cvsmenu plugin for Vim. It works like a charm for me.

烂柯人 2024-07-21 18:35:35

Meld 本身就支持这一点。 请参阅 屏幕截图,来自 meld.sourceforge.net

Meld supports this natively. See "Working Copy" screenshot from meld.sourceforge.net

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文