<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/hooks/gitutil.py, branch bump/snowflake-cortex-code</title>
<subtitle>Official Claude Code plugin directory
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/'/>
<entry>
<title>Merge branch 'main' into mhegazy/sg-index-copy-gitlinks</title>
<updated>2026-10-21T00:03:52+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-21T00:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=06d5a3f8e838c81680838aec3266b0ec4c50f992'/>
<id>06d5a3f8e838c81680838aec3266b0ec4c50f992</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: keep nested repositories out of the index copy</title>
<updated>2026-10-20T23:00:54+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-20T23:00:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=a00d13d77ba7bf13a9d2ae0db5f7e24aeb4b12b2'/>
<id>a00d13d77ba7bf13a9d2ae0db5f7e24aeb4b12b2</id>
<content type='text'>
The hooks run `git stash create` (the turn baseline) and
`git add --intent-to-add` (untracked files) on a throwaway copy of the
index. A nested repository that the index records is a gitlink entry
there. `git stash create` takes no --ignore-submodules option and
`git add` reads the gitlinks its paths cover, so both started a second
git inside that directory.

Before anything runs on the copy, remove the gitlink entry of every
nested repository from the copy, never from the real index. If that
removal fails, do not use the copy at all: the baseline falls back to
HEAD and runs no stash create, and the diff reads the real index with
--ignore-submodules=all. A gitlink whose directory has no `.git` (a
submodule that is not checked out) stays; git starts nothing there.

Run the intent-to-add `git add` with literal pathspecs, in that one
call's environment only.

The index file is scanned for a gitlink's mode bytes first, so a
repository without one starts no extra git process.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The hooks run `git stash create` (the turn baseline) and
`git add --intent-to-add` (untracked files) on a throwaway copy of the
index. A nested repository that the index records is a gitlink entry
there. `git stash create` takes no --ignore-submodules option and
`git add` reads the gitlinks its paths cover, so both started a second
git inside that directory.

Before anything runs on the copy, remove the gitlink entry of every
nested repository from the copy, never from the real index. If that
removal fails, do not use the copy at all: the baseline falls back to
HEAD and runs no stash create, and the diff reads the real index with
--ignore-submodules=all. A gitlink whose directory has no `.git` (a
submodule that is not checked out) stays; git starts nothing there.

Run the intent-to-add `git add` with literal pathspecs, in that one
call's environment only.

The index file is scanned for a gitlink's mode bytes first, so a
repository without one starts no extra git process.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'main' into mhegazy/sg-stop-pathspec</title>
<updated>2026-10-20T22:49:16+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-20T22:49:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=01c4bf56762d51c6560fd91af4345307cd619a01'/>
<id>01c4bf56762d51c6560fd91af4345307cd619a01</id>
<content type='text'>
The batched path commands now read each diff through the bounded reader
that main added, so both changes apply to get_git_diff.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The batched path commands now read each diff through the bounded reader
that main added, so both changes apply to get_git_diff.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6808 from anthropics/mhegazy/sg-secret-named-telemetry</title>
<updated>2026-10-20T20:56:17+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-20T20:56:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=c1785e2e56643aec21c99b3d879e9aef39e37d33'/>
<id>c1785e2e56643aec21c99b3d879e9aef39e37d33</id>
<content type='text'>
security-guidance: count secret-named data files in the Stop review set</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: count secret-named data files in the Stop review set</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6807 from anthropics/mhegazy/sg-stop-diff-memory</title>
<updated>2026-10-20T20:56:05+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-20T20:56:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=bcd305d2af2831e6ba10e2073a28d565c63ceb3e'/>
<id>bcd305d2af2831e6ba10e2073a28d565c63ceb3e</id>
<content type='text'>
security-guidance: read the Stop review's git diff without holding it whole</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: read the Stop review's git diff without holding it whole</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6721 from anthropics/mhegazy/sg-claude-code-credential-files</title>
<updated>2026-10-20T20:27:39+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-20T20:27:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=f61e6d15fc03feb474d6df219e37b46f9c14565b'/>
<id>f61e6d15fc03feb474d6df219e37b46f9c14565b</id>
<content type='text'>
security-guidance: keep Claude Code's own credential files out of reviews</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: keep Claude Code's own credential files out of reviews</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #6810 from anthropics/mhegazy/sg-stop-baseline-checkout</title>
<updated>2026-10-20T20:27:17+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>8000722+mhegazy@users.noreply.github.com</email>
</author>
<published>2026-10-20T20:27:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=62bb122f3052d547bdc4e5e2d0e4029fdcb2e8e5'/>
<id>62bb122f3052d547bdc4e5e2d0e4029fdcb2e8e5</id>
<content type='text'>
security-guidance: do not review against a baseline from another checkout</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
security-guidance: do not review against a baseline from another checkout</pre>
</div>
</content>
</entry>
<entry>
<title>Merge main into mhegazy/sg-stop-diff-memory</title>
<updated>2026-10-20T17:19:54+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-20T17:19:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=0f6be178f21e3966272328322e6291b2f47c4727'/>
<id>0f6be178f21e3966272328322e6291b2f47c4727</id>
<content type='text'>
Conflict in get_git_diff: main added IGNORE_SUBMODULES to the diff command on the line where this branch resets its read counters. Both are kept.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflict in get_git_diff: main added IGNORE_SUBMODULES to the diff command on the line where this branch resets its read counters. Both are kept.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: stay out of repositories nested in the work tree</title>
<updated>2026-10-19T17:36:13+00:00</updated>
<author>
<name>Claude</name>
<email>noreply@anthropic.com</email>
</author>
<published>2026-10-19T17:36:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=7a151516fa58fd0160bacaf8fb5966931170bb9c'/>
<id>7a151516fa58fd0160bacaf8fb5966931170bb9c</id>
<content type='text'>
A directory with its own .git inside the work tree (a submodule, a vendored
checkout, an unpacked archive) was added to the throwaway index as a submodule
entry, and git then started a second git inside it to see whether it had
changed. Nothing in such a directory is reviewed.

git status and work-tree git diff now ignore submodule entries, an untracked
nested repository is no longer listed as a changed file or added to the index
copy, and a commit that moves a submodule is always shown as its two commit ids.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A directory with its own .git inside the work tree (a submodule, a vendored
checkout, an unpacked archive) was added to the throwaway index as a submodule
entry, and git then started a second git inside it to see whether it had
changed. Nothing in such a directory is reviewed.

git status and work-tree git diff now ignore submodule entries, an untracked
nested repository is no longer listed as a changed file or added to the index
copy, and a commit that moves a submodule is always shown as its two commit ids.
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: keep added lines past the cut, hold the diff timeout</title>
<updated>2026-10-19T16:57:46+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-19T16:57:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=6d375ed2062b0c34e8a18885439cd992ad2d834a'/>
<id>6d375ed2062b0c34e8a18885439cd992ad2d834a</id>
<content type='text'>
A reviewable file past the per-file cap now keeps as much again of its added lines, so a rewritten large file still shows what is new, and its diff ends with a line saying it was cut. The read runs on a thread so the 30 s limit holds while a process git started keeps the pipe open; a read that breaks is an error instead of a short diff. SG_MAX_FILE_DIFF_BYTES of zero or less means the default. The parser and the reader share one test for which files are reviewed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A reviewable file past the per-file cap now keeps as much again of its added lines, so a rewritten large file still shows what is new, and its diff ends with a line saying it was cut. The read runs on a thread so the 30 s limit holds while a process git started keeps the pipe open; a read that breaks is an error instead of a short diff. SG_MAX_FILE_DIFF_BYTES of zero or less means the default. The parser and the reader share one test for which files are reviewed.
</pre>
</div>
</content>
</entry>
</feed>
