Commit 1f783edf1746cb0254b6e28299dbe106bf8bbe69

Clemens Buchacher 2011-12-29T15:03:38

do not use full path in diff-index Currently, diff_index passes the full relative path from the repository root to the callback. In case of an addition, it passes the tree entry instead of the index entry. This change fixes the path used for addition, and it passes only the basename of the path. This mimics the current behavior of git_tree_diff.