v0.1.8
What's Changed
- feat: implement diff by @Brooooooklyn in #6
import { Repository } from '@napi-rs/simple-git'
const repo = new Repository('.')
const head = repo.head()
const diff = repo.diffTreeToWorkdirWithIndex(head.peelToTree())
for (const delta of diff.deltas()) {
console.log(delta.newFile().path())
}
// example.js
// src/lib.rs
// .github/workflows/CI.yml
// index.d.ts
Full Changelog: v0.1.7...v0.1.8