Sitemap
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Press enter or click to view image in full size
Photo by Robert Katzki on Unsplash

Git-Config: diff.colormoved

4 min readMar 22, 2022

--

Press enter or click to view image in full size
https://pragprog.com/newsletter/
Press enter or click to view image in full size
Git’s default output, revealing added and removed lines.
Press enter or click to view image in full size
Moved lines appear as sets of removed and added lines.
Press enter or click to view image in full size
With the zebra setting, moved lines are colored differently. Readers with sharp eyes will note a red `-` on the trailing empty line, and a green `+` on a newly inserted empty line.
Press enter or click to view image in full size
With the plain setting, insignificant changes — like empty lines — are shown as moved. The red and green markers on the empty lines from the “zebra” value above are here fuchsia and turquoise — just like the other moved lines.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

Published in The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Karl Stolley
Karl Stolley

Written by Karl Stolley

Author of Programming WebRTC, out in beta at Pragmatic Programmers. Chicagoan. Developer & writer.

Responses (1)