git: refresh index stat cache after CLI status

This commit is contained in:
2026-11-07 02:39:08 +00:00
parent 9d11ab381e
commit e1cfaa93bf
4 changed files with 47 additions and 4 deletions
+5
View File
@@ -92,6 +92,11 @@ The trailer follows a blank line after the message body.
Without this variable, `commit` preserves the normal message.
The tests compare both forms with native Git, including commit IDs.
`clean -fdq` preserves tracked files, ignored files, and nested repositories.
CLI `status` refreshes cached file stats in the index after the content comparison.
Repeated status calls reuse those stats instead of hashing unchanged files again.
If the index cannot accept writes, status still reports changes.
The read-only status API does not refresh the index.
The comparison suite checks cache refresh, cache reuse, and same-size content edits.
The log applies its path filter before its count limit.
Stashes use ordinary Git commits and the `refs/stash` reflog.