<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Formatting on Commentary of Takao</title><link>https://takao.blog/zh/tags/formatting/</link><description>Recent content in Formatting on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh</language><copyright>Commentary of Takao</copyright><lastBuildDate>Wed, 15 Jul 2026 22:01:08 +0900</lastBuildDate><atom:link href="https://takao.blog/zh/tags/formatting/index.xml" rel="self" type="application/rss+xml"/><item><title>使用 .git-blame-ignore-revs 忽略 gitblame 中的格式提交</title><link>https://takao.blog/zh/web/git-blame-ignore-revs/</link><pubDate>Sun, 20 Jul 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/zh/web/git-blame-ignore-revs/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/git-blame-ignore-revs-zh.png" alt="Featured image of post 使用 .git-blame-ignore-revs 忽略 gitblame 中的格式提交" /&gt;&lt;p&gt;当审核代码库以找出何时以及为何引入一行代码时，&lt;code&gt;git blame&lt;/code&gt; 是开发人员最好的朋友。然而，大型样式更新、代码格式化程序采用（如 Prettier）或全局 linter 自动修复可能会扰乱这段历史。单个批量重新格式化提交可以重写整个存储库的代码作者身份标签，隐藏原始开发人员和引入实际业务逻辑的提交。&lt;/p&gt;</description></item></channel></rss>