File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
1
# graph-diff
2
2
Utilities to view diff between graphs
3
3
4
- # Getting starget
4
+ # Getting started
5
5
6
6
## Install prerequisites
7
- 1 . graph-easy
8
-
7
+ Debian / Ubuntu:
8
+ ```
9
+ sudo apt-get install libgraph-easy-perl
10
+ ```
9
11
## Install
10
12
```
11
13
git clone https://github.com/yeger00/graph-diff
@@ -20,11 +22,20 @@ python -m graphdiff samples/before.dot samples/after.dot > ./diff.dot
20
22
cat ./diff.dot | ./diff-graph-color
21
23
```
22
24
23
- # git-diff
24
- ![ Alt text] ( images/git-log-example.gif?raw=true " Title ")
25
+ # git-graph-diff-tool
26
+ It is possible to use graph-diff with git, with ` git-graph-diff-tool ` provided in this library. An usage example:
27
+ ![ ] ( images/git-log-example.gif?raw=true " git-graph-diff-tool example ")
25
28
29
+ ## Install
30
+ For every repository you would like to install you need to add to .gitattributes file a rules to know how to handle .dot files. For example:
31
+ ```
32
+ echo "*.dot diff=graph_diff" >> .gitattributes
33
+ ```
34
+ Then, configure the difftool to be the ` git-graph-diff-tool ` . For example:
26
35
```
27
36
git config diff.graph_diff.command /path/to/git-graph-diff-tool
28
- *.dot diff=graph_diff
29
- git log -p --ext-diff classes.dot
37
+ ```
38
+ Then, you can use git as usual, while adding ` --ext-diff ` flag to enable external difftools.
39
+ ```
40
+ git log -p --ext-diff
30
41
```
You can’t perform that action at this time.
0 commit comments