在 hg 或 git 中的两个完整目录/项目之间存在差异? [英] Diffing between two entire directories/projects in hg or git?
问题描述
我继承了一个最初存储在 CVS 中的项目,其中包含所有修订版本.我进行了很多编辑,并尝试比较我在原始目录中所做的所有更改,包括添加的新文件与旧文件.
I inherited a project originally stored in CVS with all the revisions. I made quite a few edits, and I'm trying to compare all the changes I made in the original directory, in regards to new files added versus the old ones.
是否有某种适用于 hg/git 的实用程序,我可以在其中进行树差异分析,或类似的东西?这么说来,新增文件和删除文件之间有一个标记,是不是我要求的太多了?
Is there some sort of utility for hg/git where I can do a tree diff, or something of that nature? So that say, there's a mark between newly added files, deleted files, am I asking for too much?
推荐答案
git diff
正是如此.但它只适用于 git 项目.
git diff
does exactly that. but it only works for git projects.
hg diff
, svn diff
几乎每个版本控制系统都可以区分目录树
hg diff
, svn diff
pretty every version control system can diff directory trees
这篇关于在 hg 或 git 中的两个完整目录/项目之间存在差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!