Closed Aludirk closed 6 years ago
I am having difficulty recreating this. Could you provide a minimal test case? I will keep trying to find out what could cause this.
bash:
git init
echo "abc" > a.txt
git add a.txt
git commit -m "Initial commit."
git branch test
git checkout test
echo "def" > b.txt
git add b.txt
git commit -m "test"
git checkout master
vim a.txt
vim:
:Gitv
Gitv:
press `a` to show the commit in branch `test`
cursor point to commit in `test`
press `grs`
choose the commit to rebase
show above error
if press grr
, then show the following error:
Error detected while processing function <SNR>56_Rebase[12]..<SNR>56_RebaseGetRange[65]..<SNR>56_RebaseGetChoice[2]..<SNR>56_GetConfirmString:
line 5:
E745: Using a List as a Number
E15: Invalid expression: a:list + a:000
line 6:
E121: Undefined variable: totalList
E116: Invalid arguments for function s:ConfirmStringBipartiteGraph(totalList)
E15: Invalid expression: s:ConfirmStringBipartiteGraph(totalList)
line 7:
E121: Undefined variable: G
E116: Invalid arguments for function s:MaxBipartiteMatching(G)
E15: Invalid expression: s:MaxBipartiteMatching(G)
line 9:
E121: Undefined variable: totalList
E15: Invalid expression: totalList
Choose destination to rebase onto:
[O]k:
after press o
:
Error detected while processing function <SNR>56_Rebase:
line 23:
fatal: no such branch: 2
Thanks for the minimal test case, worked perfectly. This was fixed by the previous fix I made. There were some issues rebasing onto HEAD which have been fixed as well. Feel free to reopen if your issue persists.
When use
grs
, the following error is shown:vim version: