<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sl0pboy.git/hooks/pre-commit, branch master</title>
<subtitle>sl0pboy - a Game Boy Color emulator (companion to the gbos OS)</subtitle>
<id>https://git.sl0p.foo/sl0pboy.git/atom/hooks/pre-commit?h=master</id>
<link rel='self' href='https://git.sl0p.foo/sl0pboy.git/atom/hooks/pre-commit?h=master'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/'/>
<updated>2026-07-18T18:57:37Z</updated>
<entry>
<title>hooks: clang-format pre-commit (changed lines only) + .clang-format</title>
<updated>2026-07-18T18:57:37Z</updated>
<author>
<name>gbc dev</name>
<email>gbc@localhost</email>
</author>
<published>2026-07-18T18:57:37Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/sl0pboy.git/commit/?id=4901afc59a43841a7cd9e5aee5fbdbd5966a8171'/>
<id>urn:sha1:4901afc59a43841a7cd9e5aee5fbdbd5966a8171</id>
<content type='text'>
git-clang-format scopes formatting to the lines each commit touches -
a full-file reformat would destroy the deliberately dense hand
formatting (opcode tables, multi-statement helpers). The hook re-adds
formatted files (git-clang-format --staged fixes the worktree, not the
index) and refuses partially-staged C files rather than mixing staged
and unstaged changes. Enable once: git config core.hooksPath hooks
</content>
</entry>
</feed>
