git-p4-sync 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +8 -2
- data/Rakefile +0 -43
- data/VERSION +1 -1
- data/lib/start.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -7,13 +7,20 @@ Submit changes made to a Git repository into to Perforce
|
|
7
7
|
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.
|
8
8
|
|
9
9
|
A good way to use this script is to run it as a cronjob.
|
10
|
-
|
10
|
+
|
11
11
|
The --test switch is useful to test git-p4-sync without actually doing anything to your files.
|
12
12
|
|
13
|
+
== Information of ignores
|
14
|
+
|
15
|
+
By default the '.git' directory is ignored, and if there is a '.gitignore' list, its items are added to the ignore list as well.
|
16
|
+
|
17
|
+
To add addition items use the -i/--ignore flag. It can take a single item, or a delimited list (either colon ':' or comma ',')
|
18
|
+
|
13
19
|
= Example
|
14
20
|
$ git-p4-sync -h # get help
|
15
21
|
$ git-p4-sync -g ~/git/my-project/ -p ~/p4/my-project/ --pull --submit # do it
|
16
22
|
$ git-p4-sync -g ~/git/my-project/ -p ~/p4/my-project/ --pull --submit --test # fake it
|
23
|
+
$ git-p4-sync -g ~/git/my-project/ -p ~/p4/my-project/ --pull --submit --ignore ponies.tar.gz,kittens.tar.gz # ignore some stuff
|
17
24
|
|
18
25
|
== Dependencies (for tests only)
|
19
26
|
|
@@ -29,4 +36,3 @@ Copyright (c) 2009-2011 {Carl Mercier}[http://carlmercier.com]. See LICENSE for
|
|
29
36
|
|
30
37
|
{Vincent Batts}[https://github.com/vbatts]
|
31
38
|
|
32
|
-
|
data/Rakefile
CHANGED
@@ -8,46 +8,3 @@ Rake::TestTask.new(:test) do |t|
|
|
8
8
|
end
|
9
9
|
|
10
10
|
task :default => :test
|
11
|
-
|
12
|
-
begin
|
13
|
-
require 'jeweler'
|
14
|
-
Jeweler::Tasks.new do |gemspec|
|
15
|
-
gemspec.name = "git-p4-sync"
|
16
|
-
gemspec.summary = "Submit changes made to a Git repository into to Perforce"
|
17
|
-
gemspec.email = "carl@carlmercier.com"
|
18
|
-
gemspec.homepage = "http://github.com/cmer/git-p4-sync"
|
19
|
-
gemspec.description = "Submit changes made to a Git repository into to Perforce"
|
20
|
-
gemspec.authors = ["Carl Mercier"]
|
21
|
-
gemspec.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*"]
|
22
|
-
gemspec.rubyforge_project = 'git-p4-sync'
|
23
|
-
gemspec.add_dependency('diff_dirs', '>= 0.1.2')
|
24
|
-
end
|
25
|
-
rescue LoadError
|
26
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
27
|
-
end
|
28
|
-
|
29
|
-
begin
|
30
|
-
require 'rake/contrib/sshpublisher'
|
31
|
-
namespace :rubyforge do
|
32
|
-
|
33
|
-
desc "Release gem and RDoc documentation to RubyForge"
|
34
|
-
task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
|
35
|
-
|
36
|
-
namespace :release do
|
37
|
-
desc "Publish RDoc to RubyForge."
|
38
|
-
task :docs => [:rdoc] do
|
39
|
-
config = YAML.load(
|
40
|
-
File.read(File.expand_path('~/.rubyforge/user-config.yml'))
|
41
|
-
)
|
42
|
-
|
43
|
-
host = "#{config['username']}@rubyforge.org"
|
44
|
-
remote_dir = "/var/www/cmercier/git-p4-sync/"
|
45
|
-
local_dir = 'rdoc'
|
46
|
-
|
47
|
-
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
rescue LoadError
|
52
|
-
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
|
53
|
-
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/start.rb
CHANGED
@@ -29,7 +29,7 @@ OptionParser.new do |opts|
|
|
29
29
|
options[:simulate] = o
|
30
30
|
end
|
31
31
|
|
32
|
-
opts.on("-i", "--ignore [STRING]", "Items to ignore.
|
32
|
+
opts.on("-i", "--ignore [STRING]", "Items to ignore. This is a colon ':' or comma ',' delimited list") do |o|
|
33
33
|
options[:ignore] = o
|
34
34
|
end
|
35
35
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-p4-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Carl Mercier
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-18 00:00:00 -04:00
|
19
19
|
default_executable: git-p4-sync
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|