git-p4-sync 0 Rubygems

Submit changes made to a Git repository into to Perforce

3 years after MIT

= git-p4-sync

Submit changes made to a Git repository into to Perforce

== Use case

Joe starts an amazing startup with a few l337 h4x0rs buddies. Obviously, they use Git as their SCM because of their awesomeness. Amazing Startup is eventually acquired by Big Co Inc, which uses Perforce as their SCM. The l337 h4x0rs are obviously not willing to give up Git, and convincing 3000 employees and C-Level executives to drop Perforce for Git sounds like mission impossible. Enters git-p4-sync. It allows l337 h4x0rs to sync a Git repository into Perforce with a simple command. It is easier to use than git-p4, and does just one thing: sync changes made on the Git repository into Perforce.

A good way to use this script is to run it as a cronjob.

The --test switch is useful to test git-p4-sync without actually doing anything to your files.

== Information of ignores

By default the '.git' directory is ignored, and if there is a '.gitignore' list, its items are added to the ignore list as well.

To add addition items use the -i/--ignore flag. It can take a single item, or a delimited list (either colon ':' or comma ',')

= Example $ git-p4-sync -h # get help $ git-p4-sync -g ~/git/my-project/ -p ~/p4/my-project/ --pull --submit # do it $ git-p4-sync -g ~/git/my-project/ -p ~/p4/my-project/ --pull --submit --test # fake it $ git-p4-sync -g ~/git/my-project/ -p ~/p4/my-project/ --pull --submit --ignore ponies.tar.gz,kittens.tar.gz # ignore some stuff

== Dependencies (for tests only)

  • Git command line executables
  • Perforce command line executable
  • diff_dirs gem

== COPYRIGHT

Copyright (c) 2009-2012 {Carl Mercier}[http://carlmercier.com]. See LICENSE for details.

== CONTRIBUTORS

{Vincent Batts}[https://github.com/vbatts] {Daniel Nugent}[https://github.com/DannoHung]

Related Repositories

cmakeprojectmanager2

cmakeprojectmanager2

Enhanced CMake Project Manager plugin for Qt Creator ...

git-p4

git-p4

Script to manage a remote perforce repository using git (written in python) ...

git-p4s

git-p4s

Import Perforce stream history into a git repository. ...

p5

p5

Complementary Perforce command-line tools ...

linux-p4d

linux-p4d

Deamon which fetch sensor data of the 'Lambdatronic s3200' and store to a MySQL ...


Top Contributors

cmer nugend vbatts

Releases

-   v0.2.0 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar