public
Rubygem
Description: Visualize git commit SHAs. It's nerd acid!
Homepage: http://git-trip.heroku.com/
Clone URL: git://github.com/Oshuma/git-trip.git
Click here to lend your support to: git-trip and make a donation at www.pledgie.com !
Starting on a console git-trip
Oshuma (author)
Sun Jul 20 21:13:29 -0700 2008
commit  a99a50af71c39131a65b8080c875089dfcc46a53
tree    5885f0ab18bb2ad99effb64052d0bd3f9e399cf9
parent  6b051e7d36357dddae4830890659b01eeb9754c2
0
bin/git-trip 100644 →
...
1
 
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
0
@@ -1,3 +1,37 @@
0
 #!/usr/bin/env ruby -w
0
+require File.dirname(__FILE__) + '/../lib/git-trip'
0
 
0
-puts 'Coming soon...'
0
+require 'optparse'
0
+
0
+options = { :dir => '.' }
0
+
0
+opts = OptionParser.new do |opt|
0
+ opt.banner = "Usage: git-trip [options]"
0
+
0
+ opt.separator 'Required (only use one):'
0
+ opt.on('-g', '--github TAG', 'Create an image from a Github tag (ex. Oshuma/git-trip).') do |g|
0
+ options[:github] = g
0
+ end
0
+ opt.on('-d', '--dir DIR', 'Create an image from a local git repository.') do |d|
0
+ options[:dir] = d
0
+ end
0
+ opt.on('-u', '--uri URI', 'Create an image from a URI (currently expects JSON).') do |u|
0
+ options[:uri] = u
0
+ end
0
+
0
+ opt.separator ''
0
+ opt.separator 'Optional:'
0
+
0
+ opt.on('-r', '--render [MODE]', [:blend, :pixel, :radial],
0
+ 'Run the image through the given PaintMode.') do |r|
0
+ options[:mode] = r
0
+ end
0
+
0
+ opt.on_tail('-h', '--help', 'Show this help text.') do
0
+ puts opt; exit
0
+ end
0
+ opt.on_tail('--version', 'Show GitTrip version.') do
0
+ puts "GitTrip v#{GitTrip::VERSION}"
0
+ end
0
+end
0
+opts.parse!(ARGV)

Comments

    No one has commented yet.