vgit.nvim icon indicating copy to clipboard operation
vgit.nvim copied to clipboard

Error when trying to diff a file when a patch was applied

Open duarm opened this issue 3 years ago • 3 comments

Description

Cloned dwm and tried to apply a patch, a conflict occurred and I ran :VGit buffer_diff_preview to check what changed and fix the conflict, and the following error occurred.

[VGit] fatal: ambiguous argument ':./dwm.c': unknown revision or path not in the working tree.
       Use '--' to separate paths from revisions, like this:
       'git <command> [<revision>...] -- [<file>...]'

Steps:

  • $ git apply -3 patch.diff`
  • Conflict occured.
  • $ nvim dwm.c
  • run :VGit buffer_diff_preview

Info

  • nvim --version output: NVIM v0.9.0-dev-492+g224473546c
  • Operating system: Artix

duarm avatar Jan 08 '23 21:01 duarm

Same issue here sometimes with any vgit command. Also noticed that the gutter signs aren't displayed when it occurs.

xfzv avatar Mar 29 '23 11:03 xfzv

Exact same issue including the gutter only updating when the file is reopened.

sudoCompetence avatar May 15 '23 02:05 sudoCompetence

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 12 '23 03:09 stale[bot]