git rebase stopped working in git for windows

99封情书 提交于 2019-12-05 09:33:11

Updated git to 2.19, the issue has gone.

While installing new git version, setup wizard has shown two checkboxes, asking to turn on new experimental built-in features: rebase and stash.

I've left them unchecked.

Updated to git 2.19.1.windows.1, now turned those checkboxes on. Everything still works.

The built-in git rebase is now more complete with Git 2.21 (Feb. 2019), since instead of going through "git-rebase--am" scriptlet to use the "am" backend, the built-in version of "git rebase" learned to drive the "am" backend directly.

built-in rebase: call git am directly

While the scripted git rebase still has to rely on the git-rebase--am.sh script to implement the glue between the rebase and the am commands, we can go a more direct route in the built-in rebase and avoid using a shell script altogether.

This patch represents a straight-forward port of git-rebase--am.sh to C, along with the glue code to call it directly from within builtin/rebase.c.

This reduces the chances of Git for Windows running into trouble due to problems with the POSIX emulation layer (known as "MSYS2 runtime", itself a derivative of the Cygwin runtime): when no shell script is called, the POSIX emulation layer is avoided altogether.

(Actually, with Git 2.22, Q2 2019, the built-in rebase is complete and stable, and the old script rebase is no more)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!