Hmm. Modifying the contents of the `git_diff_delta` could results in some odd problems, including likely memory leaks if the `path` pointers were changed and other strangeness if the paths were changed in a way so that the diff was no longer ordered, but so long as those paths aren't changed, I guess there is no real risk in casting away the constness.