This example demonstrates the use of the libgit2 diff APIs to
create libgit2.diff.git_diff objects and display them, emulating a number of
core Git diff command line options.
This covers on a portion of the core Git diff options and doesn't
have particularly good error handling, but it should show most of
the core libgit2 diff APIs, including various types of diffs and
how to do renaming detection and patch formatting.
This example demonstrates the use of the libgit2 diff APIs to create libgit2.diff.git_diff objects and display them, emulating a number of core Git diff command line options.
This covers on a portion of the core Git diff options and doesn't have particularly good error handling, but it should show most of the core libgit2 diff APIs, including various types of diffs and how to do renaming detection and patch formatting.