Technology

Technology

Technology

23 nov 2015

Use git blame more efficiently

Everyone has been there, that piece of code of which you think:“Wow, what a piece of crazy code, the person who wrote that should be ashamed of themselves.”

Jeroen van Baarsen

Developer

A candid desk scene: an open ledger book, a printed invoice, a mug with a retro logo, and a laptop showing a customer record. Sunlight from the left casts sharp shadows across the desk, evoking late afternoon focus time. 90s analogue photo aesthetic, realistic textures. Minimal human presence, more “tools of the trade” feel. A strong diagonal beam of natural light cuts across the white wall in the background, adding depth and elegance to the composition. The entire setting is bright, airy, and minimal. The only accent of bold color: her strappy sandals are rendered in a deep, saturated Klein blue (#002fa7), with a matte, high-fashion finish that pops against the otherwise neutral tones. Photorealistic textures, soft diffused lighting, high-resolution editorial photography style, perfectly balanced and refined.
A candid desk scene: an open ledger book, a printed invoice, a mug with a retro logo, and a laptop showing a customer record. Sunlight from the left casts sharp shadows across the desk, evoking late afternoon focus time. 90s analogue photo aesthetic, realistic textures. Minimal human presence, more “tools of the trade” feel. A strong diagonal beam of natural light cuts across the white wall in the background, adding depth and elegance to the composition. The entire setting is bright, airy, and minimal. The only accent of bold color: her strappy sandals are rendered in a deep, saturated Klein blue (#002fa7), with a matte, high-fashion finish that pops against the otherwise neutral tones. Photorealistic textures, soft diffused lighting, high-resolution editorial photography style, perfectly balanced and refined.
A candid desk scene: an open ledger book, a printed invoice, a mug with a retro logo, and a laptop showing a customer record. Sunlight from the left casts sharp shadows across the desk, evoking late afternoon focus time. 90s analogue photo aesthetic, realistic textures. Minimal human presence, more “tools of the trade” feel. A strong diagonal beam of natural light cuts across the white wall in the background, adding depth and elegance to the composition. The entire setting is bright, airy, and minimal. The only accent of bold color: her strappy sandals are rendered in a deep, saturated Klein blue (#002fa7), with a matte, high-fashion finish that pops against the otherwise neutral tones. Photorealistic textures, soft diffused lighting, high-resolution editorial photography style, perfectly balanced and refined.

Everyone has been there, that piece of code of which you think:

“Wow, what a piece of crazy code, the person who wrote that should be ashamed of themselves.”

(Of course it wasn’t you! It’s never you!) or maybe you’re more positive minded, and you think:

“That's a nice piece of code, who made this?”

The tool you are most likely to use is git blame (if it's not the tool of choice, please consider it!).

With git blame comes one little issue, it gives a lot of false positives, for example, someone moved the piece of code around, or removed a trailing whitespace. All those actions will cause the git blame to point to them.

To make sure you only get the person who changed the code itself (Ignoring white spaces and other trivial changes), you can use the following flags:

Content

Scale your commerce business faster, with recurring revenue

From one-time to a lifetime, we help you to put customers at the heart of your business and build lasting relationships.