salesforce / p4-fusion

A fast Perforce to Git conversion tool written in C++ using Perforce Helix Core C++ API and Libgit2
BSD 3-Clause "New" or "Revised" License
79 stars 17 forks source link

Submit/push back to Perforce? / compatibility with git-p4? #70

Closed benblo closed 9 months ago

benblo commented 11 months ago

As far as I understand, p4-fusion only allows to clone/convert a p4 repo into a git one, not to make changes from git and contribute back to p4, right? Is the resulting repo then compatible with git-p4 (ie CL annotations in commit messages/notes), so we can use git-p4 to submit back?

twarit-waikar commented 9 months ago

That should be possible, yes. p4-fusion intentionally doesn't add extra annotations in the commit messages other than what git-p4.py does. This makes it possible to use the same repository across both of these tools.

https://github.com/salesforce/p4-fusion/blob/master/p4-fusion/git_api.cc#L268

benblo commented 9 months ago

Thanks!