Comments (9)
So, on the nightly
branch, here's how that sequence results (thanks for the reproduction steps):
Since it's fixed there, I'm not super keen to revisit this. I'll merge this into master
when nvim-0.10
is released - in the meantime I recommend either using nightly
or waiting the (hopefully) short time until it's release :)
from neogit.
@rami3l The issue seems to happen when there are staged changes in renamed file, and unstaged changes to it's content.
Steps to reproduce, in an example repo without unstaged changes:
echo "example" > test.txt
git add -A && git commit -m "..."
mv test.txt test_2.txt
git add -A
echo "change" >> test_2.txt
Open neovim and neogit status buffer and the bug happens.
from neogit.
To provide more context on this, the git status
invocation gives:
$ git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always status -z --porcelain=2 -b
# branch.oid 048af8ddf23bf8cdf58c818739eb828a84ba01cd# branch.head master# branch.upstream origin/master# branch.ab +0 -02 R. N... 100644 100644 100644 ac01e6941fe11104afee78fa73ad77f9707d169b ac01e6941fe11104afee78fa73ad77f9707d169b R100 lua/plugins/lsp/rust-analyzer.lualua/plugins/lsp/rust_analyzer.lua
... and I suspect the problem is somewhere near here:
neogit/lua/neogit/lib/git/status.lua
Lines 117 to 118 in a3f23af
neogit/lua/neogit/lib/git/status.lua
Line 43 in a3f23af
... where match_2
should be parsing, in the example above:
R. N... 100644 100644 100644 ac01e6941fe11104afee78fa73ad77f9707d169b ac01e6941fe11104afee78fa73ad77f9707d169b R100 lua/plugins/lsp/rust-analyzer.lualua/plugins/lsp/rust_analyzer.lua
Full Logs
[TRACE Mon Feb 5 19:23:13 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "rev-parse", "--show-toplevel" }
[DEBUG Mon Feb 5 19:23:13 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:103: [REPO]: Initializing Repository
[DEBUG Mon Feb 5 19:23:13 2024] ...l/.local/share/nvim/lazy/neogit/lua/neogit/lib/state.lua:10: [STATE]: Reading file: '/Users/rami3l/.local/state/nvim/neogit/%Users%rami3l%.config%nvim'
[DEBUG Mon Feb 5 19:23:13 2024] ...l/.local/share/nvim/lazy/neogit/lua/neogit/lib/state.lua:10: [STATE]: Loaded: '/Users/rami3l/.local/state/nvim/neogit/%Users%rami3l%.config%nvim'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "rev-parse", "--show-toplevel" }
[DEBUG Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:1415: [STATUS BUFFER]: Creating...
[DEBUG Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:1424: [STATUS BUFFER]: Initializing...
[DEBUG Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:1469: [STATUS BUFFER]: Dispatching initial render
[DEBUG Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:533: [STATUS BUFFER]: Acquired refresh lock:
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "rev-parse", "--show-toplevel" }
[DEBUG Mon Feb 5 19:23:14 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:76: [REPO]: Refreshing 'update_status'
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'status': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always status -z --porcelain=2 -b'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "status", "-z", "--porcelain=2", "-b" }
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always status -z --porcelain=2 -b' succeeded in 4 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'rev-parse': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --short 048af8ddf23bf8cdf58c818739eb828a84ba01cd'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "rev-parse", "--short", "048af8ddf23bf8cdf58c818739eb828a84ba01cd" }
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --short 048af8ddf23bf8cdf58c818739eb828a84ba01cd' succeeded in 4 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master --max-count=1'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "origin/master", "--max-count=1" }
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master --max-count=1' succeeded in 4 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'rev-parse': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --verify --quiet refs/heads/origin/master'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "rev-parse", "--verify", "--quiet", "refs/heads/origin/master" }
[WARN Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:622: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --verify --quiet refs/heads/origin/master' failed with code 1 after 4 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'describe': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always describe --long --tags HEAD'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "describe", "--long", "--tags", "HEAD" }
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[WARN Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:622: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always describe --long --tags HEAD' failed with code 128 after 3 ms
[WARN Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:628: [CLI] [STDERR] fatal: No names found, cannot describe anything.
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch --max-count=10'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "--max-count=10" }
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch @{upstream}.. --max-count=256'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "@{upstream}..", "--max-count=256" }
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --max-count=1 --format=%s 048af8ddf23bf8cdf58c818739eb828a84ba01cd'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", "--max-count=1", "--format=%s", "048af8ddf23bf8cdf58c818739eb828a84ba01cd" }
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..@{upstream} --max-count=256'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "..@{upstream}", "--max-count=256" }
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'stash': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always stash list'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "stash", "list" }
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always stash list' succeeded in 5 ms
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch @{upstream}.. --max-count=256' succeeded in 5 ms
[DEBUG Mon Feb 5 19:23:14 2024] ...cal/share/nvim/lazy/neogit/lua/neogit/lib/git/config.lua:100: [Config] Rebuilding git config_cache
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'config': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always config --list --null --local'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "config", "--list", "--null", "--local" }
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always config --list --null --local' succeeded in 3 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master.. --max-count=256'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "origin/master..", "--max-count=256" }
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --max-count=1 --format=%s 048af8ddf23bf8cdf58c818739eb828a84ba01cd' succeeded in 9 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..@{upstream} --max-count=256' succeeded in 10 ms
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..origin/master --max-count=256'
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "..origin/master", "--max-count=256" }
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch --max-count=10' succeeded in 10 ms
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master.. --max-count=256' succeeded in 4 ms
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb 5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..origin/master --max-count=256' succeeded in 3 ms
[DEBUG Mon Feb 5 19:23:14 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:62: [REPO]: Refreshes complete
[DEBUG Mon Feb 5 19:23:14 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:65: [REPO]: Running refresh callback
[DEBUG Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:513: [STATUS BUFFER]: Redrawing
[DEBUG Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:518: [STATUS BUFFER]: Finished Redrawing
[INFO Mon Feb 5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:560: [STATUS BUFFER]: Refresh lock is now free
[TRACE Mon Feb 5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
from neogit.
I think I may have found out the origin of the problem.
https://git-scm.com/docs/git-status says:
Renamed or copied entries have the following format:
2 <XY> <sub> <mH> <mI> <mW> <hH> <hI> <X><score> <path><sep><origPath>
...
<sep> When the `-z` option is used, the 2 pathnames are separated
with a NUL (ASCII 0x00) byte; otherwise, a tab (ASCII 0x09)
byte separates them.
... which indicates that this is indeed a regression introduced in 5312c67.
from neogit.
@CKolkey Aha! This is a combination of 2 separate issues so fixing only one of them (with #1165) won't work.
I expect rest
to be
"R. N... 100644 100644 100644 ac01e6941fe11104afee78fa73ad77f9707d169b ac01e6941fe11104afee78fa73ad77f9707d169b R100 lua/plugins/lsp/rust-analyzer.lua\0lua/plugins/lsp/rust_analyzer.lua"
... but instead the actual value was all the contents before '\0', so with git status -z
the old pattern matched something like lua/plugins/lsp/rust-analyzer.lu
<- a
, leading to the original problematic status line.
from neogit.
Just for the record, the same issue keeps happening with the latest version ( c0b1d4d ), and Neovim version 0.9.5
from neogit.
It's actually fixed in #1167 rather than #1165, at least for a while...
Could this be a regression for some kind?
from neogit.
Just for the record, the same issue keeps happening with the latest version ( c0b1d4d ), and Neovim version 0.9.5
@javoscript I'm on c0b1d4d + nvim 0.9 as well and it seems that I can't reproduce this issue 👀
from neogit.
Given that maybe we should reopen this issue. @CKolkey what do you think?
from neogit.
Related Issues (20)
- Push refspec support HOT 1
- issue with kind=replace HOT 5
- Using the default config from README.md does not work HOT 1
- vim.wait must not be called in a lua loop callback HOT 13
- Open Current Branch in Browser HOT 1
- Using ":Neogit branch" to create a branch leads to error
- Error "Neogit has not been setup!" HOT 2
- Neogit doesn't respond to subcomands
- Error when committing HOT 1
- closing commit_editor with kind = "vsplit" causes error HOT 2
- Discarding specific lines does not work
- ignored_settings not honoring the `--` flag of the log popup
- Erroneous behavior when working simutaniously with two or more git repos
- Is it possible to disable curosrline highlightings but keep context highlightings?
- unstaging a highlighted section in an staged but untracked file does not work HOT 6
- Float window cannot be split HOT 1
- NeogitWinSeparator has no default highlight
- Vertical split commit popup throws an error when closing or commiting in vsplit
- Tab not focused for secondary git repo the first time Neogit is opened
- Neogit fails to close staged diff split if commit editor is split instead of tab HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogit.