Contact Info

(for those who care)

Instant Gratification   

Thu, 19 May 2011

Git Diff “Hunk Headers”

Cool throwaway feature of git diff’s. “Patch Hunk Headers”.

Basically any diff will regex backwards (depending on detected target language) and put the function or “something sensible” in front of the diff output. That way you can (likely) see if you are putting a print statement in “function foo()” or “function bar()” before committing.


Please use responsibly.

00:01 CST | category / entries
permanent link | comments?

Like what you just read? Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.

Thanks for Visiting!