( state: AttributionState, filePath: string, content: string, mtime: number = Date.now(), )
| 378 | * Used when NCode creates a new file through a non-tracked mechanism. |
| 379 | */ |
| 380 | export function trackFileCreation( |
| 381 | state: AttributionState, |
| 382 | filePath: string, |
| 383 | content: string, |
| 384 | mtime: number = Date.now(), |
| 385 | ): AttributionState { |
| 386 | // A creation is simply a modification from empty to the new content |
| 387 | return trackFileModification(state, filePath, '', content, false, mtime) |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * Track a file deletion by NCode (e.g., via bash rm command). |
nothing calls this directly
no test coverage detected