提交 2c27ff47 编写于 作者: S Shay Frendt

Merge pull request #401 from jwright/alias-pull-request-with-e-note

Alias `pull-request` with `e-note`
......@@ -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.
#
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册