summaryrefslogtreecommitdiff
path: root/plugins/plugin-dev/skills/command-development/references/frontmatter-reference.md
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-05 09:53:54 -0700
committerMohamed Hegazy <mhegazy@anthropic.com>2026-10-05 09:53:54 -0700
commita22217bb450a6cc00d7a161566e7cc7d96dbf63a (patch)
treed805eb1ed3ec8a89ea6466bad1da7e8007bae3db /plugins/plugin-dev/skills/command-development/references/frontmatter-reference.md
parentd182ca456ca09d31d139f7d3818d1d333b103cce (diff)
security-guidance: leave nothing behind when git is killed (2.0.9 → 2.0.10)mhegazy/sg-temp-index-cleanup
With a very large git index the hook's git calls hit their time limits and are killed, so git cannot clean up. Each kill could leave an index-sized file in the temp directory, index.stash.<pid> files in .git, and a dead .git/index.lock that fails the user's next git add or commit. - `git stash create` and the work-tree diff run on a throwaway index copy. - Every git the hook spawns gets GIT_OPTIONAL_LOCKS=0. - Copies live in a private per-user folder and are removed together with the files git writes next to them. - Leftovers older than 30 minutes are swept, including existing ones. Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'plugins/plugin-dev/skills/command-development/references/frontmatter-reference.md')
0 files changed, 0 insertions, 0 deletions