Git

Blog posts about Git configuration and customizatin.

Create Git diffs with proper function context

Thu, 2016-02-11 13:37 -- drunken monkey

For years I have been annoyed (slightly, but still) that Git diffs for PHP classes always just contained the class header instead of the method header as the function context. I finally got round to doing a bit of research and it turns out that the solution is astonishingly easy: just one small and simple config file and it will magically work.

Subscribe to RSS - Git