Skip to content

Commit 424c244

Browse files
doc
1 parent 37dbac5 commit 424c244

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ Using the `template mode`, the `DiffView` component can utilize the `fast-diff`
7070
#### FastDiff diffLine
7171
![Screenshot](https://github.com/MrWangJustToDo/git-diff-view/blob/main/enableFastDiffTemplate.png)
7272

73+
#### How to enable FastDiff template
74+
```ts
75+
import { setEnableFastDiffTemplate } from '@git-diff-view/core' // or react/vue runtime package
76+
77+
setEnableFastDiffTemplate(true);
78+
```
79+
7380
## Features
7481

7582
+ [x] Show the `git diff` result

0 commit comments

Comments
 (0)