From aa666637e9fe3be6501a87414c03f191d71bfc77 Mon Sep 17 00:00:00 2001 From: Ed Hartwell Goose <1108173+edhgoose@users.noreply.github.com> Date: Sat, 29 Aug 2026 17:44:35 +0100 Subject: [PATCH] Add note about limtation --- pkg/commands/git_commands/file_loader.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/commands/git_commands/file_loader.go b/pkg/commands/git_commands/file_loader.go index b86f57c1a..a9496e25a 100644 --- a/pkg/commands/git_commands/file_loader.go +++ b/pkg/commands/git_commands/file_loader.go @@ -235,8 +235,10 @@ func (self *FileLoader) repoTooLargeForUntrackedFilesAll() bool { // trackedFileCountFromIndex returns the number of entries recorded in the git // index at indexPath, read from its 12-byte header: the 4-byte signature "DIRC", -// a 4-byte version, and a 4-byte big-endian entry count. This undercounts when a -// split index is in use, but that only softens the large-repo heuristic above. +// a 4-byte version, and a 4-byte big-endian entry count. +// +// Limitation: with a split index (core.splitIndex) this reads only the main +// index file, which holds a small delta. func trackedFileCountFromIndex(indexPath string) (int, bool) { f, err := os.Open(indexPath) if err != nil {