Use incremental update in the pre-commit hook - #6
Merged
Conversation
The pre-commit hook ran "ccg build ." — a full re-parse of the entire repo on every commit. A commit only changes a few files, so use "ccg update ." which re-parses just the changed files (hash-based) and preserves existing graph state. Verified with the real binary that update builds correctly from an empty graph (first commit) and skips unchanged files on subsequent runs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pre-commit 훅이 커밋마다
ccg build .(전체 재파싱)을 돌던 것을ccg update .(증분)로 변경.커밋은 일부 파일만 바꾸므로 변경 파일만 해시 기반 재파싱하는 게 맞음 — 훨씬 빠르고 그래프 상태 보존. webhook 동기화 경로도 이미
Update(증분)를 씀.실 바이너리로 검증:
ccg update→added=1(전체 파싱, build와 동일 결과)added=1 skipped=1(증분)부수 효과: DB 직접등록 상태(향후 set_annotation 등)가 커밋마다 전멸하지 않음.
전체 36 패키지 그린.
🤖 Generated with Claude Code