2022-07-04 19:31:17 +02:00
|
|
|
# LibGitGraph
|
2022-07-04 21:13:55 +02:00
|
|
|
Git grapth visualization API for AntOS application.
|
2022-07-04 19:31:17 +02:00
|
|
|
|
2022-07-04 21:13:55 +02:00
|
|
|
The visualization can be easily integrated to an AntOS application, example:
|
2022-07-04 19:31:17 +02:00
|
|
|
|
2022-07-04 21:13:55 +02:00
|
|
|
```typescript
|
|
|
|
const graph = new API.LibGitGraph({
|
|
|
|
target: this.find("git-graph")
|
|
|
|
});
|
|
|
|
graph.on_open_diff = (files) => {
|
|
|
|
console.log(files);
|
|
|
|
}
|
|
|
|
graph.base_dir = "home://workspace/repo-git";
|
|
|
|
```
|
2022-07-04 19:31:17 +02:00
|
|
|
|
2022-07-04 21:13:55 +02:00
|
|
|
## Change logs:
|
|
|
|
- v0.1.0-b: Initial version
|