Skip to content

Expose diff delta status#10

Open
dfdezmonteiro wants to merge 3 commits into
light-tech:mainfrom
dfdezmonteiro:expose-diff-delta-status
Open

Expose diff delta status#10
dfdezmonteiro wants to merge 3 commits into
light-tech:mainfrom
dfdezmonteiro:expose-diff-delta-status

Conversation

@dfdezmonteiro
Copy link
Copy Markdown

This PR exposes the raw libgit2 git_diff_delta.status value through DiffDelta.

This allows Swift clients to distinguish added, deleted, modified, renamed, untracked, conflicted, and other delta states without guessing from file paths or status buckets.

The change is intentionally small:

  • adds a readonly status property to DiffDelta
  • initializes it from delta->status
  • documents the libgit2 status values

dfdezmonteiro and others added 3 commits May 15, 2026 20:07
This README update details the changes made in the MiniGit fork, including the exposure of the `git_diff_delta.status` value and its implications for Swift/iOS clients.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant