Skip to content

staging/committing a change does not update the gitsigns column #1381

@justinmk

Description

@justinmk

Description

bisected to: 1fcaddc

Neovim version

NVIM v0.12.0-dev-905+gd08b26511154

Operating system and version

macos

Expected behavior

After fugitive :Gwrite to stage buffer changes, gitsigns should not show signs for changed/added/deleted lines.

Actual behavior

After fugitive :Gwrite to stage buffer changes, the signs for changed/added/deleted lines are still shown, they aren't auto-updated.

Minimal config

for name, url in pairs{
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  fugitive = 'https://github.com/tpope/vim-fugitive/',
} 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, -- You must add this to enable debug messages
}

Steps to reproduce

  1. nvim --clean -u min.lua
  2. delete a line in a git-tracked file
    • gitsigns shows "deleted" sign on the line.
  3. :write (save the file)
  4. :Gwrite (stage the changes with fugitive)
  5. gitsigns still shows the deleted sign.

Gitsigns debug messages


Gitsigns cache

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions