# Another Perforce importer for git

3 messages from 2006-08-14 to 2006-08-14. Participants: Alex Riesen, Jakub Narebski.
Thread: https://gitlist.dev/t/5243

## Alex Riesen, 2006-08-14 13:04

Subject: Another Perforce importer for git
Message-ID: <81b0412b0608140604u75c6522brbc1bc83fc7c9c5c8@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0608140604u75c6522brbc1bc83fc7c9c5c8%40mail.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.

```

## Jakub Narebski, 2006-08-14 14:07

Subject: Re: Another Perforce importer for git
Message-ID: <ebq016$fd3$1@sea.gmane.org>
URL: https://gitlist.dev/e/ebq016%24fd3%241%40sea.gmane.org
In-Reply-To: <81b0412b0608140604u75c6522brbc1bc83fc7c9c5c8@mail.gmail.com>

```
Alex Riesen wrote:

> 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, 2006-08-14 15:11

Subject: Re: Another Perforce importer for git
Message-ID: <81b0412b0608140811k4db611a4m630b6f909d736a90@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0608140811k4db611a4m630b6f909d736a90%40mail.gmail.com
In-Reply-To: <ebq016$fd3$1@sea.gmane.org>

```
On 8/14/06, Jakub Narebski <jnareb@gmail.com> wrote:
> > 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

```
