Give a tracked file new stat info with the same content, so status has an entry to refresh.
(file: string, offsetSec: number)
| 26 | |
| 27 | /** Give a tracked file new stat info with the same content, so status has an entry to refresh. */ |
| 28 | function staleStatInfo(file: string, offsetSec: number): void { |
| 29 | const when = new Date(Date.now() - offsetSec * 1000); |
| 30 | fs.utimesSync(file, when, when); |
| 31 | } |
| 32 | |
| 33 | describe('change detection never takes the git index lock (#3295)', () => { |
| 34 | let root: string; |
no outgoing calls
no test coverage detected