Skip to content

v0.2.0

Choose a tag to compare

@tenedev tenedev released this 03 Jan 13:39

Features

  • Added a comprehensive Git diff API supporting multiple comparison modes, including working tree, staged changes, commits, commit ranges, and file-based comparisons.

  • Introduced a new diff module at src/lib/diff.ts that provides a wide range of functions for comparing repository states.

  • Implemented a core diff function with support for common Git diff flags such as --patch, --stat, --numstat, --name-only, and --name-status.

  • Added specialized helper functions for common diff use cases:

    • diffWorkingTree
    • diffStaged
    • diffHead
    • diffCommits
    • diffRange
    • diffFiles
  • Added diff statistics APIs including:

    • diffStats
    • diffStatsStaged
    • diffStatsCommits
  • Enabled tracking of file counts, additions, deletions, and binary file changes.

  • Added change detection and status utilities:

    • hasDiff
    • hasStagedDiff
    • hasOnlyWhitespaceChanges
    • hasOnlyEOLChanges
    • hasBinaryChanges
  • Added APIs for listing and counting changed or staged files:

    • diffChangedFiles
    • getChangedFiles
    • getStagedFiles
    • changedFileCount
    • stagedFileCount
  • Enhanced untracked file handling in src/lib/status.ts with:

    • hasUntrackedFiles
    • getUntrackedFiles
  • Added an internal utility parseNumStat (src/lib/utils/parseNumStat.ts) to convert git diff --numstat output into a structured format.

Chores

  • Updated build configuration.

What's Changed

  • chore(deps): update pnpm to v10.27.0 by @renovate[bot] in #7
  • feat: add diff utilities and refactor status by @teneplaysofficial in #8

New Contributors

  • @teneplaysofficial made their first contribution in #8

Full Changelog: v0.1.0...v0.2.0