<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>预提交钩子 on 办公AI智能小助手</title>
    <link>https://blog.qife122.com/tags/%E9%A2%84%E6%8F%90%E4%BA%A4%E9%92%A9%E5%AD%90/</link>
    <description>Recent content in 预提交钩子 on 办公AI智能小助手</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <copyright>qife</copyright>
    <lastBuildDate>Wed, 31 Dec 2025 08:53:05 +0800</lastBuildDate>
    <atom:link href="https://blog.qife122.com/tags/%E9%A2%84%E6%8F%90%E4%BA%A4%E9%92%A9%E5%AD%90/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>使用Git预提交钩子实现代码美化自动化</title>
      <link>https://blog.qife122.com/p/%E4%BD%BF%E7%94%A8git%E9%A2%84%E6%8F%90%E4%BA%A4%E9%92%A9%E5%AD%90%E5%AE%9E%E7%8E%B0%E4%BB%A3%E7%A0%81%E7%BE%8E%E5%8C%96%E8%87%AA%E5%8A%A8%E5%8C%96/</link>
      <pubDate>Wed, 31 Dec 2025 08:53:05 +0800</pubDate>
      <guid>https://blog.qife122.com/p/%E4%BD%BF%E7%94%A8git%E9%A2%84%E6%8F%90%E4%BA%A4%E9%92%A9%E5%AD%90%E5%AE%9E%E7%8E%B0%E4%BB%A3%E7%A0%81%E7%BE%8E%E5%8C%96%E8%87%AA%E5%8A%A8%E5%8C%96/</guid>
      <description>&lt;h1 id=&#34;git预提交钩子实现代码美化&#34;&gt;Git预提交钩子实现代码美化&lt;/h1&gt;&#xA;&lt;h2 id=&#34;简介&#34;&gt;简介&lt;/h2&gt;&#xA;&lt;p&gt;在本文中，我将分享一个用于辅助代码美化的Git预提交钩子。&lt;/p&gt;&#xA;&lt;p&gt;在Linux开发中，我通常采用两种不同的编码风格：用户空间和内核空间。Linux内核有着非常具体的编码规范，每个提交到内核的补丁都必须严格遵守这一风格。Linux内核提供了一个非常实用的脚本&lt;code&gt;checkpatch.pl&lt;/code&gt;，可用于检查你的补丁是否符合内核风格规范。该脚本也适用于完整的文件。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
