(file, content)
| 44 | } |
| 45 | |
| 46 | function normalize(file, content) { |
| 47 | if (file.endsWith('.json')) { |
| 48 | return JSON.stringify(stripGeneratedMetadata(JSON.parse(content)), null, 2) + '\n'; |
| 49 | } |
| 50 | return content; |
| 51 | } |
| 52 | |
| 53 | function readHead(file) { |
| 54 | const result = spawnSync('git', ['show', `HEAD:${file}`], { encoding: 'utf8' }); |
no test coverage detected