git-hub 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 1.0.0 (2010-??-??)
2
+
3
+ *
4
+
5
+ ## 0.3.2 (2010-02-17)
6
+
7
+ * Fixed zshell git completion / aliasing - `hub alias zsh`.
8
+
1
9
  ## 0.3.1 (2010-02-13)
2
10
 
3
11
  * Add `hub remote origin` shortcut. Assumes your GitHub login.
data/lib/hub/commands.rb CHANGED
@@ -189,7 +189,7 @@ module Hub
189
189
  shells = {
190
190
  'sh' => 'alias git=hub',
191
191
  'bash' => 'alias git=hub',
192
- 'zsh' => 'alias git=hub',
192
+ 'zsh' => 'function git(){hub $@}',
193
193
  'csh' => 'alias git hub',
194
194
  'fish' => 'alias git hub'
195
195
  }
data/lib/hub/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hub
2
- Version = '0.3.1'
2
+ Version = '0.3.2'
3
3
  end
data/man/hub.1 CHANGED
@@ -7,10 +7,26 @@
7
7
  \fBhub\fR \-\- git + hub = github
8
8
  .
9
9
  .SH "SYNOPSIS"
10
- \fBhub\fR \fICOMMAND\fR \fIOPTIONS\fR \fBhub alias\fR [\fB\-s\fR] \fISHELL\fR
10
+ \fBhub\fR \fICOMMAND\fR \fIOPTIONS\fR
11
+ .
12
+ .br
13
+ \fBhub alias\fR [\fB\-s\fR] \fISHELL\fR
14
+ .
15
+ .br
11
16
  .
12
17
  .P
13
- \fBgit init \-g\fR \fIOPTIONS\fR \fBgit clone\fR [\fB\-p\fR] \fIOPTIONS\fR [\fIUSER\fR/]\fIREPOSITORY\fR \fIDIRECTORY\fR \fBgit remote add\fR [\fB\-p\fR] \fIOPTIONS\fR \fIUSER\fR[/\fIREPOSITORY\fR] \fBgit browse\fR [\fB\-p\fR] [\fIUSER\fR/]\fIREPOSITORY\fR
18
+ \fBgit init \-g\fR \fIOPTIONS\fR
19
+ .
20
+ .br
21
+ \fBgit clone\fR [\fB\-p\fR] \fIOPTIONS\fR [\fIUSER\fR/]\fIREPOSITORY\fR \fIDIRECTORY\fR
22
+ .
23
+ .br
24
+ \fBgit remote add\fR [\fB\-p\fR] \fIOPTIONS\fR \fIUSER\fR[/\fIREPOSITORY\fR]
25
+ .
26
+ .br
27
+ \fBgit browse\fR [\fB\-p\fR] [\fIUSER\fR/]\fIREPOSITORY\fR
28
+ .
29
+ .br
14
30
  .
15
31
  .SH "DESCRIPTION"
16
32
  \fBhub\fR enhances various \fBgit\fR commands with GitHub remote expansion. The
@@ -131,7 +147,7 @@ $ git remote add \-p rtomayko
131
147
  > git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
132
148
 
133
149
  $ git remote add origin
134
- > git remote add origingit://github.com/YOUR_USER/CURRENT_REPO.git
150
+ > git remote add origin git://github.com/YOUR_USER/CURRENT_REPO.git
135
151
  .
136
152
  .fi
137
153
  .
data/man/hub.1.html CHANGED
@@ -66,13 +66,15 @@
66
66
  <p><code>hub</code> -- git + hub = github</p>
67
67
  <h2>SYNOPSIS</h2>
68
68
 
69
- <p><code>hub</code> <var>COMMAND</var> <var>OPTIONS</var>
70
- <code>hub alias</code> [<code>-s</code>] <var>SHELL</var></p>
69
+ <p><code>hub</code> <var>COMMAND</var> <var>OPTIONS</var> <br>
70
+ <code>hub alias</code> [<code>-s</code>] <var>SHELL</var> <br>
71
+ </p>
71
72
 
72
- <p><code>git init -g</code> <var>OPTIONS</var>
73
- <code>git clone</code> [<code>-p</code>] <var>OPTIONS</var> [<var>USER</var>/]<var>REPOSITORY</var> <var>DIRECTORY</var>
74
- <code>git remote add</code> [<code>-p</code>] <var>OPTIONS</var> <var>USER</var>[/<var>REPOSITORY</var>]
75
- <code>git browse</code> [<code>-p</code>] [<var>USER</var>/]<var>REPOSITORY</var></p>
73
+ <p><code>git init -g</code> <var>OPTIONS</var> <br>
74
+ <code>git clone</code> [<code>-p</code>] <var>OPTIONS</var> [<var>USER</var>/]<var>REPOSITORY</var> <var>DIRECTORY</var> <br>
75
+ <code>git remote add</code> [<code>-p</code>] <var>OPTIONS</var> <var>USER</var>[/<var>REPOSITORY</var>] <br>
76
+ <code>git browse</code> [<code>-p</code>] [<var>USER</var>/]<var>REPOSITORY</var> <br>
77
+ </p>
76
78
 
77
79
  <h2>DESCRIPTION</h2>
78
80
 
@@ -177,7 +179,7 @@ $ git remote add -p rtomayko
177
179
  &gt; git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
178
180
 
179
181
  $ git remote add origin
180
- &gt; git remote add origingit://github.com/YOUR_USER/CURRENT_REPO.git
182
+ &gt; git remote add origin git://github.com/YOUR_USER/CURRENT_REPO.git
181
183
  </code></pre>
182
184
 
183
185
  <h3>git init</h3>
data/man/hub.1.ron CHANGED
@@ -3,13 +3,13 @@ hub(1) -- git + hub = github
3
3
 
4
4
  ## SYNOPSIS
5
5
 
6
- `hub` <COMMAND> <OPTIONS>
7
- `hub alias` [`-s`] <SHELL>
6
+ `hub` <COMMAND> <OPTIONS>
7
+ `hub alias` [`-s`] <SHELL>
8
8
 
9
- `git init -g` <OPTIONS>
10
- `git clone` [`-p`] <OPTIONS> [<USER>/]<REPOSITORY> <DIRECTORY>
11
- `git remote add` [`-p`] <OPTIONS> <USER>[/<REPOSITORY>]
12
- `git browse` [`-p`] [<USER>/]<REPOSITORY>
9
+ `git init -g` <OPTIONS>
10
+ `git clone` [`-p`] <OPTIONS> [<USER>/]<REPOSITORY> <DIRECTORY>
11
+ `git remote add` [`-p`] <OPTIONS> <USER>[/<REPOSITORY>]
12
+ `git browse` [`-p`] [<USER>/]<REPOSITORY>
13
13
 
14
14
  ## DESCRIPTION
15
15
 
@@ -97,7 +97,7 @@ cloning:
97
97
  > git remote add rtomayko git@github.com:rtomayko/CURRENT_REPO.git
98
98
 
99
99
  $ git remote add origin
100
- > git remote add origingit://github.com/YOUR_USER/CURRENT_REPO.git
100
+ > git remote add origin git://github.com/YOUR_USER/CURRENT_REPO.git
101
101
 
102
102
  ### git init
103
103
 
data/test/alias_test.rb CHANGED
@@ -24,7 +24,7 @@ class AliasTest < Test::Unit::TestCase
24
24
  end
25
25
 
26
26
  def test_alias_zsh
27
- assert_alias_command "zsh", "alias git=hub"
27
+ assert_alias_command "zsh", "function git(){hub $@}"
28
28
  end
29
29
 
30
30
  def test_alias_csh
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-13 00:00:00 -08:00
12
+ date: 2010-02-17 00:00:00 -08:00
13
13
  default_executable: hub
14
14
  dependencies: []
15
15