libgit2/libgit2 — Issue #577: Callback from git_tree_diff_index_recursive doesn't supply full path
Author: rweeks
Created: 2012-02-28 00:25:24+00:00
State: open

The callback function `git_tree_diff_cb` doesn't provide the full path info, which is OK for `git_tree_diff` but not so great for `git_tree_diff_index_recursive`. It would be really helpful to provide a `char *root` like in `git_treewalk_cb`.

I've hacked something together [here](https://github.com/rweeks/libgit2/commit/76e9fcb687be88c67b6277bd4c6308e38f0942ce) that works for me, I'm willing to put some more effort into making a proper fix if somebody can tell me what it should look like.