threads / discuss / 5243

Another Perforce importer for git

Subject: Another Perforce importer for git

## tl;dr

3 messages between Aug 14, 2006 and Aug 14, 2006.

replies: 2people: 2as markdown or json

Alex Riesen· Aug 14, 2006, 13:04 UTC · lore

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.

Jakub Narebski· Aug 14, 2006, 14:07 UTC · re: Alex Riesen · lore

Re: Another Perforce importer for git

Alex Riesen wrote:
Show 7 quoted lines
> 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).
Could you please add appropriate entry in GitWiki page
 http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
Thanks in advance...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Alex Riesen· Aug 14, 2006, 15:11 UTC · re: Jakub Narebski · lore

Re: Another Perforce importer for git

On 8/14/06, Jakub Narebski <jnareb@gmail.com> wrote:
Show 11 quoted lines
> > 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).
>
> Could you please add appropriate entry in GitWiki page
>  http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
> Thanks in advance...

It a bit not enough, I'm afraid. Besides, I'd have to reference the scriptlet by gmane - there wont ever be a webpage, I think: http://permalink.gmane.org/gmane.comp.version-control.git/25352

← back to recent threads