bd sync: 2025-11-09 14:13:48

This commit is contained in:
Steve Yegge
2025-11-09 14:13:48 -08:00
parent 052255a2e8
commit d482d9ea6e
3 changed files with 146 additions and 130 deletions

File diff suppressed because one or more lines are too long

View File

@@ -179,6 +179,7 @@ With --no-db: creates .beads/ directory and issues.jsonl file instead of SQLite
gitignorePath := filepath.Join(localBeadsDir, ".gitignore")
gitignoreContent := `# SQLite databases
*.db
*.db?*
*.db-journal
*.db-wal
*.db-shm
@@ -193,8 +194,16 @@ bd.sock
db.sqlite
bd.db
# Merge artifacts (temporary files from 3-way merge)
beads.base.jsonl
beads.base.meta.json
beads.left.jsonl
beads.left.meta.json
beads.right.jsonl
beads.right.meta.json
# Keep JSONL exports and config (source of truth for git)
!*.jsonl
!issues.jsonl
!metadata.json
!config.json
`

View File

@@ -126,13 +126,17 @@ func TestInitCommand(t *testing.T) {
gitignoreStr := string(gitignoreContent)
expectedPatterns := []string{
"*.db",
"*.db?*",
"*.db-journal",
"*.db-wal",
"*.db-shm",
"daemon.log",
"daemon.pid",
"bd.sock",
"!*.jsonl",
"beads.base.jsonl",
"beads.left.jsonl",
"beads.right.jsonl",
"!issues.jsonl",
}
for _, pattern := range expectedPatterns {
if !strings.Contains(gitignoreStr, pattern) {