Skip to main content

gitignore_content

Function gitignore_content 

Source
pub fn gitignore_content() -> &'static str
Expand description

Generate .gitignore content for the .savecontext directory.

Uses a whitelist pattern: ignore everything by default, then explicitly include only the JSONL sync files that should be tracked in git.

This prevents accidentally committing:

  • The SQLite database
  • Temporary files
  • Any future files that shouldn’t be tracked