lewis6991 / gitsigns.nvim

Git integration for buffers
MIT License
4.86k stars 186 forks source link

After commiting changes only one file got updated #1046

Closed Fildo7525 closed 2 months ago

Fildo7525 commented 2 months ago

Description

I changed some stuff in a file in a project and I have committed the changes. After executing the commit only the opened buffer got updated in the first try. In the second try only the opened file was left unupdated. The logs are from the second case.

I have a feeling that this may be connected to #1028

Neovim version

NVIM v0.11.0-dev-67+g0e9c92a90 Build type: RelWithDebInfo LuaJIT 2.1.1713484068 Run "nvim -V1 -v" for more info

Operating system and version

6.5.0-35-generic #35~22.04.1-Ubuntu

Expected behavior

All of the buffers have updated gitsigns.

Actual behavior

  1. All the buffers that are not the current buffer have kept the changes and were not updated. Running :Gitsigns refresh did not help.
  2. All the buffers except the opened buffer have updated their status :Gitsigns refresh did not help.

Minimal config

for name, url in pairs{
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
} do
  local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.opt.runtimepath:append(install_path)
end

require('gitsigns').setup{debug_mode = true}

Steps to reproduce

  1. mkdir gitsigns_issue
  2. cd gitsigns_issue
  3. git init
  4. echo "1\n2\n3\n" > file1
  5. echo "1\n2\n3\n" > file2
  6. git add file
  7. `git commit -m 'init commit'
  8. nvim --clean -u minimal.lua file
  9. change some stuff in both files
  10. git add *
  11. git commit -m "second commit" (while the files are opened)
  12. The updates are only visible in the currently visible buffer

Gitsigns debug messages

:Gitsigns debug_messages

[0.638] dprintf: Highlight GitSignsAdd is already defined
[0.649] dprintf: Highlight GitSignsChange is already defined
[0.658] dprintf: Highlight GitSignsDelete is already defined
[0.678] dprintf: Deriving GitSignsChangedelete from GitSignsChange
[0.696] dprintf: Deriving GitSignsTopdelete from GitSignsDelete
[0.765] dprintf: Deriving GitSignsUntracked from GitSignsAdd
[0.789] dprintf: Deriving GitSignsAddNr from GitSignsAdd
[0.841] dprintf: Deriving GitSignsChangeNr from GitSignsChange
[0.872] dprintf: Deriving GitSignsDeleteNr from GitSignsDelete
[0.888] dprintf: Deriving GitSignsChangedeleteNr from GitSignsChangeNr
[0.902] dprintf: Deriving GitSignsTopdeleteNr from GitSignsDeleteNr
[0.930] dprintf: Deriving GitSignsUntrackedNr from GitSignsAddNr
[0.951] dprintf: Deriving GitSignsAddLn from DiffAdd
[0.975] dprintf: Deriving GitSignsChangeLn from DiffChange
[0.988] dprintf: Deriving GitSignsChangedeleteLn from GitSignsChangeLn
[1.019] dprintf: Deriving GitSignsUntrackedLn from GitSignsAddLn
[1.051] dprintf: Deriving GitSignsStagedAdd from GitSignsAdd
[1.085] dprintf: Deriving GitSignsStagedChange from GitSignsChange
[1.120] dprintf: Deriving GitSignsStagedDelete from GitSignsDelete
[1.136] dprintf: Deriving GitSignsStagedChangedelete from GitSignsChangedelete
[1.156] dprintf: Deriving GitSignsStagedTopdelete from GitSignsTopdelete
[1.172] dprintf: Deriving GitSignsStagedAddNr from GitSignsAddNr
[1.190] dprintf: Deriving GitSignsStagedChangeNr from GitSignsChangeNr
[1.217] dprintf: Deriving GitSignsStagedDeleteNr from GitSignsDeleteNr
[1.233] dprintf: Deriving GitSignsStagedChangedeleteNr from GitSignsChangedeleteNr
[1.261] dprintf: Deriving GitSignsStagedTopdeleteNr from GitSignsTopdeleteNr
[1.277] dprintf: Deriving GitSignsStagedAddLn from GitSignsAddLn
[1.307] dprintf: Deriving GitSignsStagedChangeLn from GitSignsChangeLn
[1.325] dprintf: Could not derive GitSignsStagedDeleteLn
[1.339] dprintf: Deriving GitSignsStagedChangedeleteLn from GitSignsChangedeleteLn
[1.357] dprintf: Could not derive GitSignsStagedTopdeleteLn
[1.371] dprintf: Highlight GitSignsAddPreview is already defined
[1.380] dprintf: Highlight GitSignsDeletePreview is already defined
[1.400] dprintf: Highlight GitSignsCurrentLineBlame is already defined
[1.415] dprintf: Deriving GitSignsAddInline from TermCursor
[1.437] dprintf: Deriving GitSignsDeleteInline from TermCursor
[1.452] dprintf: Deriving GitSignsChangeInline from TermCursor
[1.467] dprintf: Deriving GitSignsAddLnInline from GitSignsAddInline
[1.482] dprintf: Deriving GitSignsChangeLnInline from GitSignsChangeInline
[1.496] dprintf: Deriving GitSignsDeleteLnInline from GitSignsDeleteInline
[1.514] dprintf: Deriving GitSignsDeleteVirtLn from DiffDelete
[1.528] dprintf: Deriving GitSignsDeleteVirtLnInLine from GitSignsDeleteLnInline
[1.542] dprintf: Deriving GitSignsVirtLnum from GitSignsDeleteVirtLn
[135.736] detach(3): Detached
[135.743] detach(3): Cache was nil
[136.283] attach(3): Attaching (trigger=BufFilePost)
[136.428] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 config user.name
[143.685] run_job: git --version
[150.766] run_job: git --version
[171.303] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[172.958] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[174.257] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-fi
les --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/neo-tree filesystem [1000]
[181.001] attach(3): Not a file
[897.206] attach(8): Attaching (trigger=BufReadPost)
[897.334] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 config user.name
[1034.550] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[1037.548] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-f
iles --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.cpp
[1049.090] watch_gitdir(8): Watching git dir
[1049.184] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show 7223b0290e1968812ab9b
8cf6d348ac32048b63d
[1057.070] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show HEAD:src/Tile.cpp
[4918.904] detach(11): Detached
[4918.961] detach(11): Cache was nil
[4919.475] attach(11): Attaching (trigger=BufFilePost)
[4919.585] attach(11): Not a path
[9657.406] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9657.440] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9657.480] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9657.495] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9657.537] watcher_cb(8): Git dir update: 'index' { rename = true }
[9657.644] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9657.721] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9657.897] watcher_cb(8): Git dir update: 'rebase-merge' { rename = true }
[9690.356] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9690.946] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9690.958] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9690.982] watcher_cb(8): Git dir update: 'index' { rename = true }
[9691.042] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9691.102] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[9691.219] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9691.231] watcher_cb(8): Git dir update: 'HEAD' { rename = true }
[9691.268] cwd_watcher_cb: Git cwd dir update
[9691.329] cwd_watcher_cb: Git cwd dir update
[9691.348] cwd_watcher_cb: Git cwd dir update
[9691.388] watcher_cb(8): Git dir update: 'ORIG_HEAD.lock' { rename = true } (ignoring)
[9691.399] watcher_cb(8): Git dir update: 'ORIG_HEAD.lock' { change = true } (ignoring)
[9691.409] watcher_cb(8): Git dir update: 'ORIG_HEAD.lock' { rename = true } (ignoring)
[9691.418] watcher_cb(8): Git dir update: 'ORIG_HEAD' { rename = true } (ignoring)
[9691.466] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9691.475] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9691.529] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9691.730] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9691.895] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9691.907] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9691.926] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9691.936] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9692.206] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9692.217] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9692.281] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9692.309] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9692.326] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9692.482] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9692.508] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9692.520] watcher_cb(8): Git dir update: 'index' { rename = true }
[9692.568] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9692.578] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9692.700] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9692.724] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9692.743] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9692.753] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9692.953] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9693.300] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9693.394] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9693.406] watcher_cb(8): Git dir update: 'index' { rename = true }
[9693.419] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9693.516] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[9693.529] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9693.539] watcher_cb(8): Git dir update: 'HEAD' { rename = true }
[9693.639] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9693.649] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { change = true } (ignoring)
[9693.660] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[9693.670] watcher_cb(8): Git dir update: 'REBASE_HEAD' { rename = true }
[9694.810] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9695.786] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9695.872] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9695.880] watcher_cb(8): Git dir update: 'index' { rename = true }
[9696.799] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9697.064] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9697.115] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9697.126] watcher_cb(8): Git dir update: 'index' { rename = true }
[9697.153] watcher_cb(8): Git dir update: 'COMMIT_EDITMSG' { change = true }
[9697.263] watcher_cb(8): Git dir update: 'COMMIT_EDITMSG' { change = true }
[9697.447] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9697.496] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[9697.534] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9697.543] watcher_cb(8): Git dir update: 'HEAD' { rename = true }
[9701.328] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9701.521] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9701.558] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9701.568] watcher_cb(8): Git dir update: 'index' { rename = true }
[9701.738] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9701.748] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9702.025] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9702.036] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9702.177] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9702.206] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[9702.231] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[9702.240] watcher_cb(8): Git dir update: 'HEAD' { rename = true }
[9703.197] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9703.270] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[9703.445] watcher_cb(8): Git dir update: 'rebase-merge' { rename = true }
[9704.420] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9705.303] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[9705.333] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[9705.338] watcher_cb(8): Git dir update: 'index' { rename = true }
[9790.832] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[9905.865] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[9909.054] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-f
iles --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.cpp
[9911.415] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show 7223b0290e1968812ab9b
8cf6d348ac32048b63d
[9914.715] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show HEAD:src/Tile.cpp
[13870.933] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13871.092] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13871.140] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13871.148] watcher_cb(8): Git dir update: 'index' { rename = true }
[13872.306] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13872.405] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13872.436] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13872.442] watcher_cb(8): Git dir update: 'index' { rename = true }
[13879.934] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13880.013] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13880.020] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13880.025] watcher_cb(8): Git dir update: 'index' { rename = true }
[13880.164] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13880.275] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13880.285] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13880.314] watcher_cb(8): Git dir update: 'index.stash.18836' { rename = true }
[13881.191] watcher_cb(8): Git dir update: 'index.stash.18836.lock' { rename = true } (ignoring)
[13881.283] watcher_cb(8): Git dir update: 'index.stash.18836.lock' { rename = true } (ignoring)
[13881.456] watcher_cb(8): Git dir update: 'index.stash.18836.lock' { rename = true } (ignoring)
[13881.488] watcher_cb(8): Git dir update: 'index.stash.18836.lock' { rename = true } (ignoring)
[13881.494] watcher_cb(8): Git dir update: 'index.stash.18836' { rename = true }
[13881.901] watcher_cb(8): Git dir update: 'rebase-merge' { rename = true }
[13881.937] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13882.420] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13883.383] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13883.411] watcher_cb(8): Git dir update: 'index' { rename = true }
[13883.419] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13883.424] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13883.429] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13883.434] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13883.458] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13883.463] watcher_cb(8): Git dir update: 'index' { rename = true }
[13915.456] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13915.732] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13915.755] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13915.767] watcher_cb(8): Git dir update: 'index' { rename = true }
[13915.831] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13915.842] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[13915.851] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[13915.901] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13915.912] watcher_cb(8): Git dir update: 'HEAD' { rename = true }
[13916.271] watcher_cb(8): Git dir update: 'ORIG_HEAD.lock' { rename = true } (ignoring)
[13916.280] watcher_cb(8): Git dir update: 'ORIG_HEAD.lock' { change = true } (ignoring)
[13916.288] watcher_cb(8): Git dir update: 'ORIG_HEAD.lock' { rename = true } (ignoring)
[13916.294] watcher_cb(8): Git dir update: 'ORIG_HEAD' { rename = true } (ignoring)
[13916.303] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13916.308] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13916.395] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13916.500] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13916.630] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[13916.639] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13916.648] watcher_cb(8): Git dir update: 'REBASE_HEAD' { rename = true }
[13916.669] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[13916.674] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13916.994] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[13917.007] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13917.014] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[13917.024] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13917.034] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13917.181] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13917.191] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13917.197] watcher_cb(8): Git dir update: 'index' { rename = true }
[13917.224] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13917.230] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13917.334] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[13917.347] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13917.359] watcher_cb(8): Git dir update: 'REBASE_HEAD.lock' { rename = true } (ignoring)
[13917.365] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13917.486] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13917.528] watcher_cb(8): Git dir update: 'HEAD.lock' { change = true } (ignoring)
[13917.538] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[13917.544] watcher_cb(8): Git dir update: 'HEAD' { rename = true }
[13918.612] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13918.765] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13918.798] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13918.807] watcher_cb(8): Git dir update: 'index' { rename = true }
[13918.834] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13918.840] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13918.903] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13919.408] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13919.420] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13919.432] watcher_cb(8): Git dir update: 'index' { rename = true }
[13919.528] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13919.549] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13919.562] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[13919.568] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[13919.573] watcher_cb(8): Git dir update: 'index' { rename = true }
[13921.466] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13921.476] watcher_cb(8): Git dir update: 'packed-refs.lock' { rename = true } (ignoring)
[13921.625] watcher_cb(8): Git dir update: 'rebase-merge' { rename = true }
[14122.227] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[14125.644] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-
files --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.cpp
[14127.806] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show 99a0a8bf0f2e0bf4123d
e1702fbf119a64546cc4
[14130.844] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show HEAD:src/Tile.cpp
[15340.595] attach(8): Already attached
[15355.529] on_reload(8): Reload
[17071.794] attach(7): Attaching (trigger=BufReadPost)
[17071.916] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 config user.name
[17091.196] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[17099.962] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-
files --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.h
[17104.619] watch_gitdir(7): Watching git dir
[17104.710] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show 1436b13d8ec836e86b55
373af5319b9f5de51461
[17111.679] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show HEAD:src/Tile.h
[19406.501] detach(13): Detached
[19406.525] detach(13): Cache was nil
[19406.822] attach(13): Attaching (trigger=BufFilePost)
[19406.913] attach(13): Not a path
[20124.318] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[20124.340] watcher_cb(7): Git dir update: 'index.lock' { rename = true } (ignoring)
[20124.538] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[20124.618] watcher_cb(7): Git dir update: 'index.lock' { change = true } (ignoring)
[20124.635] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[20124.717] watcher_cb(7): Git dir update: 'index.lock' { rename = true } (ignoring)
[20124.810] watcher_cb(8): Git dir update: 'index' { rename = true }
[20124.882] watcher_cb(7): Git dir update: 'index' { rename = true }
[20324.683] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[20328.346] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-
files --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.h
[20331.127] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show 87d56152b98cf3458d10
a757ba7bb8e6e8ddfa4c
[20337.338] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show HEAD:src/Tile.h
[30175.961] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[30175.984] watcher_cb(7): Git dir update: 'index.lock' { rename = true } (ignoring)
[30176.205] watcher_cb(8): Git dir update: 'index.lock' { change = true } (ignoring)
[30176.229] watcher_cb(7): Git dir update: 'index.lock' { change = true } (ignoring)
[30176.244] watcher_cb(8): Git dir update: 'index.lock' { rename = true } (ignoring)
[30176.254] watcher_cb(7): Git dir update: 'index.lock' { rename = true } (ignoring)
[30176.309] watcher_cb(8): Git dir update: 'index' { rename = true }
[30176.400] watcher_cb(7): Git dir update: 'index' { rename = true }
[30176.426] watcher_cb(8): Git dir update: 'COMMIT_EDITMSG' { change = true }
[30176.490] watcher_cb(7): Git dir update: 'COMMIT_EDITMSG' { change = true }
[30176.515] watcher_cb(8): Git dir update: 'COMMIT_EDITMSG' { change = true }
[30176.544] watcher_cb(7): Git dir update: 'COMMIT_EDITMSG' { change = true }
[30176.638] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[30176.692] watcher_cb(7): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[30176.790] watcher_cb(8): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[30176.815] watcher_cb(7): Git dir update: 'HEAD.lock' { rename = true } (ignoring)
[30376.378] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
[30380.446] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git -c core.quotepath=off ls-
files --stage --others --exclude-standard --eol /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.h
[30382.976] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show 87d56152b98cf3458d10
a757ba7bb8e6e8ddfa4c
[30388.740] run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git show HEAD:src/Tile.h
[46891.521] cli.run: Running action 'debug_messages' with arguments {}
[196881.645] cli.run: Running action 'debug_messages' with arguments {}

:Gitsigns dump_cache

{
  [7] = {
    bufnr = 7,
    compare_text = { "...",
      head = "#pragma once",
      length = 52
    },
    compare_text_head = { "...",
      head = "#pragma once",
      length = 52
    },
    file = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.h",
    force_next_update = false,
    git_obj = {
      encoding = "utf-8",
      file = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.h",
      i_crlf = false,
      mode_bits = "100644",
      object_name = "87d56152b98cf3458d10a757ba7bb8e6e8ddfa4c",
      relpath = "src/Tile.h",
      repo = {
        abbrev_head = "master",
        detached = false,
        gitdir = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git",
        toplevel = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper",
        username = "Filip Lobpreis"
      },
      w_crlf = false
    },
    gitdir_watcher = <userdata 1>,
    hunks = { "...",
      length = 0
    },
    hunks_staged = { "...",
      length = 0
    },
    staged_diffs = { "...",
      length = 0
    }
  },
  [8] = {
    bufnr = 8,
    compare_text = { "...",
      head = '#include "Tile.h"',
      length = 31
    },
    compare_text_head = { "...",
      head = '#include "Tile.h"',
      length = 31
    },
    file = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.cpp",
    force_next_update = false,
    git_obj = {
      encoding = "utf-8",
      file = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper/src/Tile.cpp",
      i_crlf = false,
      mode_bits = "100644",
      object_name = "99a0a8bf0f2e0bf4123de1702fbf119a64546cc4",
      relpath = "src/Tile.cpp",
      repo = {
        abbrev_head = "master",
        detached = false,
        gitdir = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper/.git",
        toplevel = "/home/fildo7525/Desktop/Cpp/GUI/Minesweeper",
        username = "Filip Lobpreis"
      },
      w_crlf = false
    },
    gitdir_watcher = <userdata 2>,
    hunks = { "...",
      head = {
        added = {
          count = 6,
          lines = { "#define RED_COLOR ImVec4(1.0f, 0.0f, 0.0f, 1.0f)", "#define BLACK_COLOR ImVec4(0.0f, 0.0f, 0.0f, 1.0f)", "#define GRAY_COLOR ImVec4(0.5f, 0.5f, 0.5f, 1.0f)", "#define GREEN_COLOR (ImVec4)ImColor::HSV(0.3f, 0.6f, 0.6f, 0.5f)", "", "Tile::Tile(std::shared_ptr<Icon> ocupant, Pose position, bool clicked)" },
          start = 3
        },
        head = "@@ -3,1 +3,6 @@",
        removed = {
          count = 1,
          lines = { "Tile::Tile(std::shared_ptr<Icon> ocupant, ImColor color, Pose position, bool clicked)" },
          start = 3
        },
        type = "change",
        vend = 8
      },
      length = 4
    },
    hunks_staged = { "...",
      length = 0
    },
    staged_diffs = { "...",
      length = 0
    }
  }
}
gsvaliente commented 2 months ago

I believe that I have the same issue. When I stage and commit multiple files, only the file in which I was is 'synced'. The remaining ones still appear as if they have not been committed.

massix commented 2 months ago

Same here, I have to :checktime on all the buffers I had opened for gitsigns to refresh.

a1401358759 commented 2 months ago

Same here ! +1