Using git-p4 to setup a git clone of a perforce client

心不动则不痛 提交于 2019-12-04 21:25:24

I believe that most git-p4 operations work on a single Perforce depot path. (I could be wrong on that, I haven't used it often.)

Does your workspace follow a pattern where you have one code line you really work on, and the rest of the files are libraries that you don't modify? In other words is your workspace view something like:

//depot/my_proj/src/... //ws/src/...
//depot/libs/libA/... //ws/libs/libA/...

If so, you could probably use git-p4 on the source code, and continue to get the read-only dependencies from your Perforce workspace.

Another alternative would be to use a branch-spec in perforce to combine your perforce paths into a single location.

That would only work if you're happy with just getting the tip, without history.

AFAIK, git-p4 uses p4 print, so it doesn't care about the local mapping.

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