Hacker News new | ask | show | jobs
by finger 841 days ago
That’s exactly what my company’s legacy code base looks like.. No one wants to reformat the files because then it will mess up with git history.

It was horrendous to look at at first, but I’ve gotten used to it by now and just apply the same random style to whatever snippets I modify. :)

2 comments

> No one wants to reformat the files because then it will mess up with git history.

GitHub will use a file `.git-blame-ignore-revs` to allow blame to ignore commits that make those kind of changes. (This is the format used for the `--ignore-revs-file` option to `git blame`.)

Git has something for every occasion I ever encountered with a need for something I knew was technically possible but didn't know if git would let me do it. It let me do it every time, truly the hacker's utility.