gitscape 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1 @@
1
+ Various Git utilities for cherry-pick/rebase workflows.
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ begin
4
+ require 'gitscape'
5
+ rescue LoadError
6
+ require 'rubygems'
7
+ require 'gitscape'
8
+ end
9
+
10
+ if ARGV.size < 2
11
+ puts "Usage: gitscape upstream head"
12
+ exit(1)
13
+ else
14
+ GitScape.branch_diff(ARGV[0], ARGV[1])
15
+ end
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ upstream = ARGV[1]
4
+ head = ARGV[2]
5
+
6
+ puts "#" * 80
7
+ puts "# Commits on #{head} not on #{upstream}"
8
+ puts "#" * 80
9
+ puts
10
+ `git cherry #{upstream} #{head}`.split("\n").select { |x| x.start_with? "+" }.each do |x|
11
+ puts `git show -s --format=medium #{x.split(" ").last}`
12
+ puts
13
+ puts "-" * 80
14
+ puts
15
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "gitscape/version"
4
+
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "gitscape"
8
+ s.version = GitScape::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ["Jon Botelho"]
11
+ s.email = ["gitscape@eachscape.com"]
12
+ s.homepage = "https://github.com/jon-eachscape/gitscape"
13
+ s.summary = "Various Git utilities for cherry-pick/rebase workflows."
14
+ s.description = "Various Git utilities for cherry-pick/rebase workflows."
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ end
@@ -0,0 +1 @@
1
+ require "gitscape/base"
@@ -0,0 +1,15 @@
1
+ class GitScape
2
+ def self.branch_diff(upstream, head)
3
+ puts "#" * 80
4
+ puts "# Commits on #{head} not on #{upstream}"
5
+ puts "#" * 80
6
+ puts
7
+ `git cherry #{upstream} #{head}`.split("\n").select { |x| x.start_with? "+" }.each do |x|
8
+ puts `git show -s --format=medium #{x.split(" ").last}`
9
+ puts
10
+ puts "-" * 80
11
+ puts
12
+ end
13
+ end
14
+ end
15
+
@@ -0,0 +1,3 @@
1
+ module GitScape
2
+ VERSION = "0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitscape
3
+ version: !ruby/object:Gem::Version
4
+ hash: 9
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ version: "0.1"
10
+ platform: ruby
11
+ authors:
12
+ - Jon Botelho
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2012-06-14 00:00:00 Z
18
+ dependencies: []
19
+
20
+ description: Various Git utilities for cherry-pick/rebase workflows.
21
+ email:
22
+ - gitscape@eachscape.com
23
+ executables:
24
+ - gitscape
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - .gitignore
31
+ - Gemfile
32
+ - README.md
33
+ - bin/gitscape
34
+ - branchdiff.rb
35
+ - gitscape.gemspec
36
+ - lib/gitscape.rb
37
+ - lib/gitscape/base.rb
38
+ - lib/gitscape/version.rb
39
+ homepage: https://github.com/jon-eachscape/gitscape
40
+ licenses: []
41
+
42
+ post_install_message:
43
+ rdoc_options: []
44
+
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ none: false
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ hash: 3
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ requirements: []
66
+
67
+ rubyforge_project:
68
+ rubygems_version: 1.8.15
69
+ signing_key:
70
+ specification_version: 3
71
+ summary: Various Git utilities for cherry-pick/rebase workflows.
72
+ test_files: []
73
+