(log: string)
| 44 | } |
| 45 | |
| 46 | export function parseGitLogToMemories(log: string): Memory[] { |
| 47 | if (!log.trim()) return []; |
| 48 | |
| 49 | const memories: Memory[] = []; |
| 50 | for (const line of log.split('\n')) { |
| 51 | const parsed = parseGitLogLineToMemory(line); |
| 52 | if (parsed) memories.push(parsed); |
| 53 | } |
| 54 | return memories; |
| 55 | } |
no test coverage detected