Skip to content

vcs: fugitive's Gwrite sets signs, but should not #49

@blueyed

Description

@blueyed

TEST CASE:

  1. open a (unmodified) file in a Git repository
  2. delete a line (dd)
  3. :Gwrite (writes the current file to the index)

quickfixsigns will place a -1 sign, although there is no (non-cached) difference.

A second :Gwrite will remove the sign.

The doautocmd code from fugitive is here: https://github.com/tpope/vim-fugitive/blob/master/plugin/fugitive.vim#L2211-L2215

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions