bd sync: 2025-11-09 14:13:48
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -179,6 +179,7 @@ With --no-db: creates .beads/ directory and issues.jsonl file instead of SQLite
|
|||||||
gitignorePath := filepath.Join(localBeadsDir, ".gitignore")
|
gitignorePath := filepath.Join(localBeadsDir, ".gitignore")
|
||||||
gitignoreContent := `# SQLite databases
|
gitignoreContent := `# SQLite databases
|
||||||
*.db
|
*.db
|
||||||
|
*.db?*
|
||||||
*.db-journal
|
*.db-journal
|
||||||
*.db-wal
|
*.db-wal
|
||||||
*.db-shm
|
*.db-shm
|
||||||
@@ -193,8 +194,16 @@ bd.sock
|
|||||||
db.sqlite
|
db.sqlite
|
||||||
bd.db
|
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)
|
# Keep JSONL exports and config (source of truth for git)
|
||||||
!*.jsonl
|
!issues.jsonl
|
||||||
!metadata.json
|
!metadata.json
|
||||||
!config.json
|
!config.json
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -126,13 +126,17 @@ func TestInitCommand(t *testing.T) {
|
|||||||
gitignoreStr := string(gitignoreContent)
|
gitignoreStr := string(gitignoreContent)
|
||||||
expectedPatterns := []string{
|
expectedPatterns := []string{
|
||||||
"*.db",
|
"*.db",
|
||||||
|
"*.db?*",
|
||||||
"*.db-journal",
|
"*.db-journal",
|
||||||
"*.db-wal",
|
"*.db-wal",
|
||||||
"*.db-shm",
|
"*.db-shm",
|
||||||
"daemon.log",
|
"daemon.log",
|
||||||
"daemon.pid",
|
"daemon.pid",
|
||||||
"bd.sock",
|
"bd.sock",
|
||||||
"!*.jsonl",
|
"beads.base.jsonl",
|
||||||
|
"beads.left.jsonl",
|
||||||
|
"beads.right.jsonl",
|
||||||
|
"!issues.jsonl",
|
||||||
}
|
}
|
||||||
for _, pattern := range expectedPatterns {
|
for _, pattern := range expectedPatterns {
|
||||||
if !strings.Contains(gitignoreStr, pattern) {
|
if !strings.Contains(gitignoreStr, pattern) {
|
||||||
|
|||||||
Reference in New Issue
Block a user