The current .codegraph/.gitignore file generated by codegraph by default looks like this:
# CodeGraph data files
# These are local to each machine and should not be committed
# Database
*.db
*.db-wal
*.db-shm
# Cache
cache/
# Logs
*.log
# Hook markers
.dirty
This configuration causes an issue: when running git status in the project root, you'll notice that the .codegraph/ directory is still being tracked by Git. The reason is that although there is a .gitignore file inside this directory, the file itself is not ignored, so the entire .codegraph/ directory remains under Git's version control.
I understand that the intent of .codegraph/.gitignore is to ignore specific file types inside the directory, but the current approach doesn't fully achieve the effect of "ignoring the entire .codegraph/ directory."
Suggestion: Would it be possible to either add .codegraph/ to the root .gitignore file, or use * inside the generated .codegraph/.gitignore to ignore all contents while explicitly excluding the .gitignore file itself? For example:
# Automatically generated by codegraph
*
!.gitignore
This would ensure that the entire .codegraph/ directory is not tracked by Git while preserving the .gitignore file itself.
Thank you for your consideration!
The current
.codegraph/.gitignorefile generated bycodegraphby default looks like this:This configuration causes an issue: when running
git statusin the project root, you'll notice that the.codegraph/directory is still being tracked by Git. The reason is that although there is a.gitignorefile inside this directory, the file itself is not ignored, so the entire.codegraph/directory remains under Git's version control.I understand that the intent of
.codegraph/.gitignoreis to ignore specific file types inside the directory, but the current approach doesn't fully achieve the effect of "ignoring the entire.codegraph/directory."Suggestion: Would it be possible to either add
.codegraph/to the root.gitignorefile, or use*inside the generated.codegraph/.gitignoreto ignore all contents while explicitly excluding the.gitignorefile itself? For example:This would ensure that the entire
.codegraph/directory is not tracked by Git while preserving the.gitignorefile itself.Thank you for your consideration!