MCPcopy Create free account
hub / github.com/Seeed-Studio/wiki-documents / getLastMeaningfulUpdatedAt

Function getLastMeaningfulUpdatedAt

scripts/normalize-frontmatter.js:236–262  ·  view source on GitHub ↗

* 找出“最近一次有效更新”的日期: * - 从文件历史最新提交往回看 * - 比较相邻两个版本 * - 忽略 createdAt / updatedAt / url / slug * - 一旦发现还有其他差异,说明 newer 这个提交是最近一次有效更新 * * 关键修复: * - 使用该 commit 下文件当时的真实路径来读取内容 * - 因而支持 rename / move / 按语言拆目录

(fileAbsPath)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

normalizeFileFunction · 0.85

Calls 4

getFileHistoryEntriesFunction · 0.85
getCommitDateYMDFunction · 0.85
getFileContentAtCommitFunction · 0.85
buildComparableFromRawFunction · 0.85

Tested by

no test coverage detected