git fast-export format and spaces

五迷三道 提交于 2019-12-05 11:43:14

git fast-import does mention in the "Handling rename" section:

When importing a renamed file or directory, simply delete the old name(s) and modify the new name(s) during the corresponding commit. Git performs rename detection after-the-fact, rather than explicitly during a commit.

So your example seems to follow that logic.

Don't forget Git doesn't version directories, only blob (i.e. file content with an associated path).


To add to your edited question:

  • a move of a directory means, if imported in Git, that the source (directory) will have to be deleted after all the files have been processed (i.e. imported, renamed or not)
  • a move of a file, when imported in Git, is a classic git mv.

In 2011, The OP has posted a question on the old gmane list.
And the issue is currently (2017) discussed in Git for Windows (git-for-windows/git issue 908).

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