diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index 6d197a878d92c5e67634b802fc45bdc0753e2485..9dcd361fecce673cdef4aa1756a85ac8d09fbd4e 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -243,6 +243,12 @@ module Hub delete_editmsg end + # $ hub e-note + # $ hub e-note "My humble contribution" + # $ hub e-note -i 92 + # $ hub e-note https://github.com/rtomayko/tilt/issues/92 + alias_method :e_note, :pull_request + # $ hub clone rtomayko/tilt # > git clone git://github.com/rtomayko/tilt. # diff --git a/test/hub_test.rb b/test/hub_test.rb index 1b0e6d00728049fcc2c90937ad56f957ce1e2365..5c960842c00f325070d1d2d445d8d24fae3af4a7 100644 --- a/test/hub_test.rb +++ b/test/hub_test.rb @@ -288,6 +288,11 @@ class HubTest < Test::Unit::TestCase assert_output expected, "pull-request -m hereyougo -f" end + def test_pullrequest_alias + out = hub('e-note') + assert_equal hub('pull-request'), out + end + def test_version out = hub('--version') assert_includes "git version 1.7.0.4", out