Skip to content

v0.1.8

Compare
Choose a tag to compare
@github-actions github-actions released this 08 May 08:05
· 77 commits to main since this release
v0.1.8
9333c1e

What's Changed

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