Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
duarm opened this issue Jan 8, 2023 · 4 comments
Closed

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

duarm opened this issue Jan 8, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@duarm
Copy link

duarm commented Jan 8, 2023

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 duarm added the bug Something isn't working label Jan 8, 2023
@duarm duarm changed the title Error when trying to solve conflict Error when trying to diff a file when a patch was applied Jan 8, 2023
@xfzv
Copy link

xfzv commented Mar 29, 2023

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

@sudoCompetence
Copy link

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

@stale
Copy link

stale bot commented Sep 12, 2023

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 stale bot added the wontfix This will not be worked on label Sep 12, 2023
@stale stale bot closed this as completed Nov 11, 2023
@tanvirtin tanvirtin reopened this Nov 24, 2023
@tanvirtin tanvirtin removed the wontfix This will not be worked on label Nov 24, 2023
@tanvirtin
Copy link
Owner

tanvirtin commented Jan 22, 2025

Apologies for the late reply. Major version v1.0.0 and should be fixed by it. If not please re-open this and I will make it a priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants