Skip to content

Commit 2d0b2b8

Browse files
Add git_diff_tree() to compare working tree against arbitrary revisions (#10)
Adds git_diff_tree() table function that uses libgit2's diff API to detect modified, added, deleted, renamed, and copied files between the working tree and any git revision. Includes LATERAL variant git_diff_tree_each(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6a2d3ee commit 2d0b2b8

File tree

5 files changed

+570
-1
lines changed

5 files changed

+570
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(LOADABLE_EXTENSION_NAME ${TARGET_NAME}_loadable_extension)
1515
project(${TARGET_NAME})
1616
include_directories(src/include)
1717

18-
set(EXTENSION_SOURCES src/duck_tails_extension.cpp src/git_filesystem.cpp src/git_functions.cpp src/git_log.cpp src/git_path.cpp src/git_utils.cpp src/git_context_manager.cpp src/git_tree.cpp src/git_parents.cpp src/git_branches.cpp src/git_tags.cpp src/git_read.cpp src/git_uri.cpp src/text_diff.cpp src/git_history.cpp src/git_status.cpp)
18+
set(EXTENSION_SOURCES src/duck_tails_extension.cpp src/git_filesystem.cpp src/git_functions.cpp src/git_log.cpp src/git_path.cpp src/git_utils.cpp src/git_context_manager.cpp src/git_tree.cpp src/git_parents.cpp src/git_branches.cpp src/git_tags.cpp src/git_read.cpp src/git_uri.cpp src/text_diff.cpp src/git_history.cpp src/git_status.cpp src/git_diff_tree.cpp)
1919

2020
build_static_extension(${TARGET_NAME} ${EXTENSION_SOURCES})
2121
build_loadable_extension(${TARGET_NAME} " " ${EXTENSION_SOURCES})

0 commit comments

Comments
 (0)