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({
|
2022-07-06 18:30:59 +02:00
|
|
|
target: this.find("git-graph");
|
2022-07-04 21:13:55 +02:00
|
|
|
});
|
|
|
|
graph.on_open_diff = (files) => {
|
|
|
|
console.log(files);
|
|
|
|
}
|
2022-07-06 18:30:59 +02:00
|
|
|
graph.base_dir = "home://workspace/repo-git".asFileHandle();
|
2022-07-04 21:13:55 +02:00
|
|
|
```
|
2022-07-04 19:31:17 +02:00
|
|
|
|
2022-07-04 21:13:55 +02:00
|
|
|
## Change logs:
|
2023-01-01 01:54:04 +01:00
|
|
|
- v0.1.5-b: Adapt to new AntOS UI API
|
2022-07-06 18:30:59 +02:00
|
|
|
- v0.1.4-b: Fetch changes on a commit based on current commit and its left most parent commit
|
2022-07-05 22:45:28 +02:00
|
|
|
- v0.1.3-b: Support open Git repo with open with dialog
|
2022-07-04 23:01:35 +02:00
|
|
|
- v0.1.2-b: fix init bug
|
|
|
|
- v0.1.1-b: add class to container element
|
2022-07-04 21:13:55 +02:00
|
|
|
- v0.1.0-b: Initial version
|