logaan-igit 0.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.
- data/bin/igit +18 -0
- metadata +53 -0
data/bin/igit
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'readline'
|
|
4
|
+
include Readline
|
|
5
|
+
|
|
6
|
+
context = File.expand_path(ARGV[0] || ".")
|
|
7
|
+
|
|
8
|
+
Readline.completion_proc = proc do |string|
|
|
9
|
+
`git branch | grep #{string}`.split("\n").collect{ |b| b.gsub("*", "").strip }
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
while cmd = readline("#{context}> ")
|
|
13
|
+
case cmd
|
|
14
|
+
when "exit": exit
|
|
15
|
+
when /^cd (.*)/: context = File.expand_path(File.join(context, $1))
|
|
16
|
+
else puts `cd #{context}; git #{cmd}`
|
|
17
|
+
end
|
|
18
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: logaan-igit
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Colin Campbell-McPherson
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2008-06-25 00:00:00 -07:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: Will install the igit command. This opens up a console where you may call any git command without the need for the git prefix. Also offers tab completion of branches for easy switching.
|
|
17
|
+
email: colin@logaan.net
|
|
18
|
+
executables:
|
|
19
|
+
- igit
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
24
|
+
files:
|
|
25
|
+
- bin/igit
|
|
26
|
+
has_rdoc: false
|
|
27
|
+
homepage: http://github.com/logaan/igit
|
|
28
|
+
post_install_message:
|
|
29
|
+
rdoc_options: []
|
|
30
|
+
|
|
31
|
+
require_paths:
|
|
32
|
+
- lib
|
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: "0"
|
|
38
|
+
version:
|
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "0"
|
|
44
|
+
version:
|
|
45
|
+
requirements: []
|
|
46
|
+
|
|
47
|
+
rubyforge_project:
|
|
48
|
+
rubygems_version: 1.2.0
|
|
49
|
+
signing_key:
|
|
50
|
+
specification_version: 2
|
|
51
|
+
summary: Simple ineractive git console.
|
|
52
|
+
test_files: []
|
|
53
|
+
|