Skip to content
The Git Crypt

/static/cripta/en/ossada/blame-w-c/

Menu

GIT-006 · Archaeology

git blame -w -C

Ignores reindenting and relocation; points at who really wrote it.

Raw blame blames whoever touched the line last — including whoever merely reindented it. -w ignores whitespace changes; -C follows lines copied or moved from other files in the same commit, and each extra -C widens the search, up to combing the entire history with three.

It is the difference between blaming the latest renovation and finding the original mason: in a codebase that has been reformatted and reshuffled, only this invocation tells each line's true story.

$ git blame -w -C -C helpers.go
9e4d7b1c (Ana Ribeiro    2025-11-19  8) func fatiaTitulo(t string) string {
3f1c2aa4 (Andrey Andrade 2026-02-03  9) 	corte := strings.IndexRune(t, ':')
The original author, seen through two renovations.