From e696453736ec945034499ddd55fc02c77bc24484 Mon Sep 17 00:00:00 2001 From: SheffeyG <57262511+SheffeyG@users.noreply.github.com> Date: Fri, 12 Sep 2025 17:25:06 +0800 Subject: [PATCH] Mask git command args `diff.noprefix` --- lua/neogit/process.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/neogit/process.lua b/lua/neogit/process.lua index 60e95f56e..050b98b13 100644 --- a/lua/neogit/process.lua +++ b/lua/neogit/process.lua @@ -11,8 +11,9 @@ local Spinner = require("neogit.spinner") local api = vim.api local fn = vim.fn -local command_mask = - vim.pesc(" --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always") +local command_mask = vim.pesc( + " --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always -c diff.noprefix=false" +) local function mask_command(cmd) local command, _ = cmd:gsub(command_mask, "")