gitp4transfer

command module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 29 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GitP4Transfer

Options to import git repositories into Perforce Helix Core.

GitP4Transfer.py

Script to migrate history from a git LFS repository into p4 (Perforce Helix Core).

As of 2022/04/19 this is functional for a single branch at a time, although still considered Beta state.

It loops over commits in reverse order:

  • Checks out the commit (LFS will get the contents of the files)
  • Uses git diff-tree and then replays the contents of each file
  • Focusses on a single branch at a time (e.g. master), not branches
  • Stores latest processed commit as a counter in Helix Core - so incremental or partial runs can be done
  • Can process active branches with some manual steps.

For details of design/usage etc see: GitP4Transfer.adoc

gitp4transfer - Go version

The command imports Git history into Helix Core by creating a Helix Core checkpoint file and associated archive files. It accepts git fast-export files for Git and Plastic SCM migrations, or imports a native Git repository directly with --native-git.

For a direct repository import, provide exactly one repository path and an archive root:

gitp4transfer --native-git --archive.root /path/to/p4-root --journal jnl.0 /path/to/git-repository

By default native mode imports refs/heads/<default.branch>; set --native.git.ref to select another ref.

This is documented in: GitP4Transfer.adoc

It is considered to be in beta release.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
gitfilter command
gitgraph command
repo_p4transfer command
internal
importer
Package importer defines source-neutral data used to create a Perforce import.
Package importer defines source-neutral data used to create a Perforce import.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址