Open jedrzejboczar opened 4 months ago
Looks like the submodule "diff" can include commit messages, e.g.
Submodule frontend d1c3dff..1b6f4c8:
> fix: improve display on small screens
or not (as in the example repo that I linked in reproduction steps, git show --format=fuller d962cd9
):
Submodule lib/logpty cc45b46...292c2ed (commits not present)
Description
I get an error when commit diff includes submodule changes (when opening a commit from log view), e.g.
This does not happen if submodule changes are shown at the end of the diff, then they are just ignored, while they should be displayed.
Neovim version
NVIM v0.11.0-dev-381+gfb6c059dc5 Build type: Release LuaJIT 2.1.1716656478
Operating system and version
Arch Linux \r (\l)
Steps to reproduce
Expected behavior
Should parse the diff and also should display foldable submodule changes.
Actual behavior
Parsing fails if
Submodule...
line is before anydiff...
lines, otherwise submodule changes will be ignored.Minimal config