<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gbos.git/hooks, branch master</title>
<subtitle>gbos - a tiny Unix-flavored OS for the Game Boy Color (kernel, shell, coreutils in C, RAM filesystem)</subtitle>
<id>https://git.sl0p.foo/gbos.git/atom/hooks?h=master</id>
<link rel='self' href='https://git.sl0p.foo/gbos.git/atom/hooks?h=master'/>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/gbos.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>user</name>
<email>user@clank</email>
</author>
<published>2026-07-18T18:57:37Z</published>
<link rel='alternate' type='text/html' href='https://git.sl0p.foo/gbos.git/commit/?id=3d2305809e37c446901ea477e065167c997bf54c'/>
<id>urn:sha1:3d2305809e37c446901ea477e065167c997bf54c</id>
<content type='text'>
Same setup as sl0pboy: git-clang-format scopes formatting to the lines
each commit touches, re-adds the formatted files, and refuses
partially-staged C files. Style file matches the house style (4-space,
attached braces, 100 cols, short cases/ifs inline, no include sorting -
order is load-bearing for SDCC userland). Enable once:
git config core.hooksPath hooks
</content>
</entry>
</feed>
