没有项目描述
graphdiff的Python项目详细描述
图形差异
查看图形之间差异的实用程序
入门
安装必备组件
debian/ubuntu:
sudo apt-get install libgraph-easy-perl
安装
来源
git clone https://github.com/yeger00/graph-diff
pip install -e .
来自Pypi
pip install graphdiff
生成并查看差异
cat samples/before.dot | graph-easy --as boxart
cat samples/after.dot | graph-easy --as boxart
graph-diff samples/before.dot samples/after.dot > ./diff.dot
cat ./diff.dot | graph-diff-color
Git图形差异工具
在git中使用graph diff是可能的,这个库中提供了git-graph-diff-tool
。用法示例:
安装
对于要安装的每个存储库,您需要向.gittattributes文件添加规则,以了解如何处理.dot文件。例如:
echo "*.dot diff=graph_diff" >> .gitattributes
然后,将difftool配置为git-graph-diff-tool
。例如:
git config diff.graph_diff.command git-graph-diff-tool
然后,可以像往常一样使用git,同时添加--ext-diff
标志以启用外部difftools。
git log -p --ext-diff