Skip to content

Conversation

Keno
Copy link
Member

@Keno Keno commented Sep 30, 2025

Added Julia wrappers for three libgit2 functions:

  • GitDiff(::AbstractString): Parse diffs from unified diff format buffers
  • apply_to_tree(repo, preimage, diff, options): Apply a diff to a tree, returning a GitIndex with the result
  • write_tree_to!(repo, idx): Write an index as a tree to a repository

Made GitDiff and GitDiffStats repository-independent since they can be created from buffers and all operations work purely on object pointers. Added ApplyOptions struct for apply configuration and tests for all new functionality.

Written by Claude

…d git_index_write_tree_to

Added Julia wrappers for three libgit2 functions with idiomatic APIs:

- `GitDiff(::AbstractString)`: Parse diffs from unified diff format buffers
- `apply_to_tree(repo, preimage, diff, options)`: Apply a diff to a tree,
  returning a GitIndex with the result
- `write_tree_to!(repo, idx)`: Write an index as a tree to a repository

Made GitDiff and GitDiffStats repository-independent since they can be
created from buffers and all operations work purely on object pointers.
Added ApplyOptions struct for apply configuration and tests for all new
functionality.
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