问题标签 [diff]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
5755 浏览

vb.net - “最佳”差异算法

我需要在 VB.NET 中实现一个 Diff 算法来查找一段文本的两个不同版本之间的变化。我在网上找了一个侦察员,发现了几种不同的算法。

这里有人知道我可以实现的“最佳”算法吗?

0 投票
3 回答
7719 浏览

crystal-reports - 区分 Crystal Reports 的最佳方法是什么?

如果您有同一份报告 (.rpt) 的两个版本,并且您想确定确切的区别是什么,那么最好的方法是什么?我见过一些商业工具可以做到这一点,但我对花钱买一些应该相对直接的东西不太感兴趣。我可以连接到 Crystal API 并简单地列出每个字段或其他内容的所有属性吗?请有人告诉我,某处有一个开源项目可以做到这一点...... @:-)

@Kogus,不会将输出作为文本隐藏任何格式差异吗?

@ladoucep,我似乎无法在没有数据的情况下导出报告。

0 投票
7 回答
2676 浏览

database - Database compare tools

My company has a number of relatively small Access databases (2-5MB) that control our user assisted design tools. Naturally these databases evolve over time as data bugs are found and fixed and as the schema changes to support new features in the tools. Can anyone recommend a database diff tool to compare both the data and schema from one version of the database to the next? Any suggestions will be appreciated: free, open source, or commercial.

0 投票
12 回答
35130 浏览

javascript - 有人有渲染 HTML 的差异算法吗?

我有兴趣看到一个好的差异算法,可能在 Javascript 中,用于呈现两个 HTML 页面的并排差异。这个想法是差异将显示呈现的HTML 的差异。

为了澄清,我希望能够将并排差异视为渲染输出。因此,如果我删除一个段落,并排视图会知道正确地分隔内容。


确切地说是@Josh。虽然它可能会以红色或其他内容显示已删除的文本。这个想法是,如果我对我的 HTML 内容使用 WYSIWYG 编辑器,我不想切换到 HTML 来做差异。我想和两个所见即所得的编辑器并排一起做。或者至少在最终用户友好的情况下并排显示差异。

0 投票
4 回答
1784 浏览

emacs - 忽略 diff 中的 Emacs 自动生成的文件

如何diff忽略临时文件foo.c~?是否有一个配置文件将使忽略临时文件成为默认设置?

更一般地说:从 tarball 生成“干净”补丁的最佳方法是什么?我很少这样做(通过电子邮件向 OSS 项目提交错误修复),我总是在努力解决它......

编辑:好的,简短的回答是

有更好的答案吗?例如,这可以放在配置文件中吗?

0 投票
5 回答
21680 浏览

parsing - 一种区分日志文件的简单方法,忽略时间戳?

我需要区分两个日志文件,但忽略每行的时间戳部分(准确地说是前 12 个字符)。是否有一个好的工具或聪明的 awk 命令可以帮助我?

0 投票
5 回答
1988 浏览

asp.net - Are there any tools out there to compare the structure of 2 web pages?

I receive HTML pages from our creative team, and then use those to build aspx pages. One challenge I frequently face is getting the HTML I spit out to match theirs exactly. I almost always end up screwing up the nesting of <div>s between my page and the master pages.

Does anyone know of a tool that will help in this situation -- something that will compare 2 pages and output the structural differences? I can't use a standard diff tool, because IDs change from what I receive from creative, text replaces lorem ipsum, etc..

0 投票
1 回答
974 浏览

git - 你能在 git 中查看聚合变更集吗?如果是这样,怎么做?

在 Subversion 中,您可以指定一系列版本来获取一系列提交的聚合视图。这在git中可能吗?如果是这样,怎么做?

0 投票
4 回答
49828 浏览

git - 我如何生成自上次拉动以来发生的变化的 git diff?

我想编写脚本,最好是在 rake 中,将以下操作写入单个命令:

  1. 获取我本地 git 存储库的版本。
  2. Git 拉取最新代码。
  3. Git diff 从我在第 1 步中提取的版本到现在在我的本地存储库中的版本。

换句话说,我想从中央存储库中获取最新代码,并立即生成自上次拉取以来更改的差异。

0 投票
2 回答
558 浏览

xml - 有没有办法“区分”两个 XML 元素?

我需要检查两个 XML 之间的差异,但不是“盲目地”,鉴于两者都使用相同的 DTD,我实际上有兴趣验证它们是否具有相同数量的元素或是否存在差异。