Closed gabyx closed 7 months ago
@sindrets : otherwise nice tool!!
When I do
DiffviewOpen <commit>
the diff view is not against the working tree but just shows the diffs from<commit>~..<commit>
.
That sounds really weird. What makes you think that's the case?
The resulting diff from :DiffviewOpen {REV}
should have the {REV}
version on the left side and the working tree version on the right side of the diff.
I can't reproduce the issue you describe. If you believe something is not working correctly here, you need to provide a minimal config starting with the one provided in the bug template.
Sorry for the troubles, I guess I have seen an artefact, I close for now and if it happens again I can reopen.
Description
When I do
DiffviewOpen <commit>
the diff view is not against the working tree but just shows the diffs from<commit>~..<commit>
. This is not described in the docs as such...Expected behavior
The diff should open against the working tree.
Actual behavior
The diff is opened with diffing
<commit>~..<commit>
.Steps to reproduce
DiffviewOpen <commit>
Health check
Output of
``` ============================================================================== astronvim: require("astronvim.health").check() AstroNvim ~ - AstroNvim Version: v3.38.0 - Neovim Version: v0.9.4 - OK Using stable Neovim >= 0.8.0 - OK `git` is installed: Used for core functionality such as updater and plugin management - OK `xdg-open` is installed: Used for `gx` mapping for opening files with system opener (Optional) - OK `lazygit` is installed: Used for mappings to pull up git TUI (Optional) - OK `node` is installed: Used for mappings to pull up node REPL (Optional) - WARNING `gdu` is not installed: Used for mappings to pull up disk usage analyzer (Optional) - WARNING `btm` is not installed: Used for mappings to pull up system monitor (Optional) - OK `python` is installed: Used for mappings to pull up python REPL (Optional) ============================================================================== diffview: require("diffview.health").check() Checking plugin dependencies ~ - OK nvim-web-devicons installed. Checking VCS tools ~ - The plugin requires at least one of the supported VCS tools to be valid. - OK Git found. - OK Git is up-to-date. (2.42.0) - WARNING Configured `hg_cmd` is not executable: 'hg' ============================================================================== gitsigns: require("gitsigns.health").check() - OK git version 2.42.0 ============================================================================== hop: require("hop.health").check() Ensuring keys are unique ~ - OK Keys are unique Checking for deprecated features ~ - OK All good ============================================================================== lazy: require("lazy.health").check() lazy.nvim ~ - OK Git installed - OK no existing packages found by other package managers - OK packer_compiled.lua not found - WARNING {telescope.nvim}: overriding:checkhealth diffview
Log info
Relevant info from
``` [INFO 2023-12-02 12:29:20.320 +0100] ...local/share/nvim/lazy/diffview.nvim/lua/diffview/lib.lua:24: [command call] :DiffviewOpen 9aa78ec3b984915a38ab20c0210cdcacef328bbe [INFO 2023-12-02 12:29:20.469 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:483: [DiffView] Completed update for 6 files successfully (37.977 ms) [ERROR 2023-12-02 12:34:43.506 +0100] ...lazy/diffview.nvim/lua/diffview/vcs/adapters/hg/init.lua:53: [HgAdapter] Configured `hg_cmd` is not executable: 'hg' [INFO 2023-12-02 12:35:41.084 +0100] ...local/share/nvim/lazy/diffview.nvim/lua/diffview/lib.lua:24: [command call] :DiffviewOpen 9aa78ec3b984915a38ab20c0210cdcacef328bbe [INFO 2023-12-02 12:35:41.241 +0100] ...iffview.nvim/lua/diffview/scene/views/diff/diff_view.lua:483: [DiffView] Completed update for 6 files successfully (41.118 ms) :ta ```:DiffviewLog
Neovim version
Operating system and version
Linux linux-nixos 6.1.63 #1-NixOS SMP PREEMPT_DYNAMIC Mon Nov 20 10:52:19 UTC 2023 x86_64 GNU/Linux
Minimal config
No response