Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/services/checkpoints/__tests__/excludes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ readme.md text
expect(excludePatterns).toContain("*.db") // database
expect(excludePatterns).toContain("*.shp") // geospatial
expect(excludePatterns).toContain("*.log") // log

// Verify SQL files are NOT excluded (fix for issue #7310)
expect(excludePatterns).not.toContain("*.sql")
})

it("should handle errors when reading .gitattributes", async () => {
Expand Down Expand Up @@ -150,6 +153,9 @@ readme.md text
expect(excludePatterns).toContain("*.db") // database
expect(excludePatterns).toContain("*.shp") // geospatial
expect(excludePatterns).toContain("*.log") // log

// Verify SQL files are NOT excluded (fix for issue #7310)
expect(excludePatterns).not.toContain("*.sql")
})
})
})
1 change: 0 additions & 1 deletion src/services/checkpoints/excludes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ const getDatabaseFilePatterns = () => [
"*.parquet",
"*.pdb",
"*.rdb",
"*.sql",
"*.sqlite",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix! Removing SQL files from exclusions makes sense since they're text-based scripts users actively edit. However, two considerations:

  1. Large SQL dumps: Some SQL files can be multi-gigabyte database dumps. Users should add these to .gitignore if needed.

  2. CSV consistency: I noticed CSV files (*.csv) are still excluded in this list, but they're also text files users might edit. Should we consider removing CSV from exclusions for consistency?

  3. Documentation: Consider adding a comment above getDatabaseFilePatterns() explaining it excludes binary database files but not SQL scripts.

]

Expand Down
Loading