Create Git diffs with proper function context