MCPcopy
hub / github.com/ourongxing/newsnow / getFileUpdatedAt

Function getFileUpdatedAt

scripts/source.ts:88–93  ·  view source on GitHub ↗
(baseRef: string, file: string)

Source from the content-addressed store, hash-verified

86}
87
88function getFileUpdatedAt(baseRef: string, file: string) {
89 if (hasWorkingTreeChange(file)) return Number.MAX_SAFE_INTEGER
90
91 const timestamp = git(["log", "-1", "--format=%ct", `${baseRef}..HEAD`, "--", file])
92 return timestamp ? Number(timestamp) : 0
93}
94
95function getUpdatedSourceIds() {
96 try {

Callers 1

getUpdatedSourceIdsFunction · 0.85

Calls 2

hasWorkingTreeChangeFunction · 0.85
gitFunction · 0.85

Tested by

no test coverage detected