Another Perforce importer for git
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Aug 14, 2006, 13:04 UTC
- Message-ID
- <81b0412b0608140604u75c6522brbc1bc83fc7c9c5c8@mail.gmail.com>
Just in case someone might ever need this: it imports a _synced_ state into git repo. IOW, you sync down the files as you were commanded (it's corporal, umm... corporate, remember?) and run the script to create a commit for you. You still have to run git-commit manually, but don't have to pass "-a" to it (which can be dangerous, and does not pick up the files recently added to p4 repo).
For the poor souls unlucky enough to be in windows environment, a .bat is attached, too.
P4 has a better interoperability with python, so rewriting this script in Python maybe a good idea.