git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Next: Jakub Narebski
Message 1 of 3 in “Another Perforce importer for git”
  1. Alex RiesenAug 14, 2006
  2. Jakub NarebskiAug 14, 2006
  3. Alex RiesenAug 14, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.