提交 d84e8266 编写于 作者: S Stephen Bannasch 提交者: Mislav Marohnić

test and document `hub browse` a single commit

上级 bb3c9b81
......@@ -204,12 +204,18 @@ Creates a new public github repository and adds the remote `origin` at
$ git browse
> open https://github.com/YOUR_USER/CURRENT_REPO
$ git browse -- commit/SHA
> open https://github.com/YOUR_USER/CURRENT_REPO/commit/SHA
$ git browse -- issues
> open https://github.com/YOUR_USER/CURRENT_REPO/issues
$ git browse schacon/ticgit
> open https://github.com/schacon/ticgit
$ git browse schacon/ticgit commit/SHA
> open https://github.com/schacon/ticgit/commit/SHA
$ git browse resque
> open https://github.com/YOUR_USER/resque
......
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "HUB" "1" "June 2011" "DEFUNKT" "Git Manual"
.TH "HUB" "1" "October 2011" "DEFUNKT" "Git Manual"
.
.SH "NAME"
\fBhub\fR \- git + hub = github
......@@ -303,12 +303,18 @@ $ git push origin,staging,qa bert_timeout
$ git browse
> open https://github\.com/YOUR_USER/CURRENT_REPO
$ git browse \-\- commit/SHA
> open https://github\.com/YOUR_USER/CURRENT_REPO/commit/SHA
$ git browse \-\- issues
> open https://github\.com/YOUR_USER/CURRENT_REPO/issues
$ git browse schacon/ticgit
> open https://github\.com/schacon/ticgit
$ git browse schacon/ticgit commit/SHA
> open https://github\.com/schacon/ticgit/commit/SHA
$ git browse resque
> open https://github\.com/YOUR_USER/resque
......
......@@ -309,12 +309,18 @@ $ git am --ignore-whitespace https://github.com/davidbalbert/hub/commit/fdb9921
<pre><code>$ git browse
&gt; open https://github.com/YOUR_USER/CURRENT_REPO
$ git browse -- commit/SHA
&gt; open https://github.com/YOUR_USER/CURRENT_REPO/commit/SHA
$ git browse -- issues
&gt; open https://github.com/YOUR_USER/CURRENT_REPO/issues
$ git browse schacon/ticgit
&gt; open https://github.com/schacon/ticgit
$ git browse schacon/ticgit commit/SHA
&gt; open https://github.com/schacon/ticgit/commit/SHA
$ git browse resque
&gt; open https://github.com/YOUR_USER/resque
......@@ -362,7 +368,7 @@ $ git help hub
<ol class='man-decor man-foot man foot'>
<li class='tl'>DEFUNKT</li>
<li class='tc'>June 2011</li>
<li class='tc'>October 2011</li>
<li class='tr'>hub(1)</li>
</ol>
......
......@@ -228,12 +228,18 @@ authentication?
$ git browse
> open https://github.com/YOUR_USER/CURRENT_REPO
$ git browse -- commit/SHA
> open https://github.com/YOUR_USER/CURRENT_REPO/commit/SHA
$ git browse -- issues
> open https://github.com/YOUR_USER/CURRENT_REPO/issues
$ git browse schacon/ticgit
> open https://github.com/schacon/ticgit
$ git browse schacon/ticgit commit/SHA
> open https://github.com/schacon/ticgit/commit/SHA
$ git browse resque
> open https://github.com/YOUR_USER/resque
......
......@@ -684,6 +684,10 @@ config
assert_command "browse mojombo/bert", "open https://github.com/mojombo/bert"
end
def test_hub_browse_commit
assert_command "browse mojombo/bert commit/5d5582", "open https://github.com/mojombo/bert/commit/5d5582"
end
def test_hub_browse_tracking_nothing
stub_tracking_nothing
assert_command "browse mojombo/bert", "open https://github.com/mojombo/bert"
......@@ -727,6 +731,10 @@ config
assert_command "browse --", "open https://github.com/defunkt/hub"
end
def test_hub_browse_commit_from_current
assert_command "browse -- commit/6616e4", "open https://github.com/defunkt/hub/commit/6616e4"
end
def test_hub_browse_no_tracking
stub_tracking_nothing
assert_command "browse", "open https://github.com/defunkt/hub"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册