Files
neovim/runtime/lua/vim
Evgeni Chasnovski 35a9bf8785 fix(pack): avoid eager vim.version call #38705
Problem: Commands that rely on Git may need its version to perform more
  targeted actions (like decide which arguments are safe to use).
  For performance, computing this version is delayed up until it is
  needed (like to not compute on regular startup), but not done before
  every Git operation (as it is too much and can be done better).

  This requires storing the Git version in a variable which is currently
  initiated via `vim.version.parse()` call (most probably because it was
  easier to handle Lua types this way).

  However, the problem is that this results in sourcing `vim.version`
  and computing `vim.version.parse` on every startup even if no Git
  operation would be done.

Solution: Don't call `vim.version.parse()` during `require('vim.pack')`
  and ensure its more precise lazy computation.
(cherry picked from commit 157c7bccb0)
2026-04-06 01:18:37 +00:00
..
2026-03-11 18:24:57 +01:00
2025-06-06 15:36:48 +01:00
2026-03-28 09:59:54 -04:00
2026-01-09 10:07:15 +01:00
2026-03-11 18:00:18 +01:00
2026-03-29 11:56:37 -04:00
2026-03-11 18:00:18 +01:00
2025-09-16 11:41:36 +08:00
2026-04-01 17:08:38 -04:00