pull-request: should read local config if present
This commit is contained in:
罗泽轩 2016-08-07 17:08:12 +08:00 committed by GitHub
commit fb3bc8d7ae
4 changed files with 12 additions and 5 deletions

View file

@ -30,7 +30,7 @@ EOF
# user
user=$(git config --global user.email)
user=$(git config user.email)
test -z "$user" && abort "git config user.email required"
# branch

View file

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-PULL\-REQUEST" "1" "July 2016" "" ""
.TH "GIT\-PULL\-REQUEST" "1" "August 2016" "" "Git Extras"
.
.SH "NAME"
\fBgit\-pull\-request\fR \- Create pull request for GitHub project
@ -12,6 +12,9 @@
.SH "DESCRIPTION"
Create pull request for a project on GitHub via commandline\.
.
.P
Uses the email from \fBgit config user\.email\fR to open the pull request\.
.
.SH "OPTIONS"
<target branch>
.

View file

@ -65,7 +65,7 @@
<ol class='man-decor man-head man head'>
<li class='tl'>git-pull-request(1)</li>
<li class='tc'></li>
<li class='tc'>Git Extras</li>
<li class='tr'>git-pull-request(1)</li>
</ol>
@ -82,6 +82,8 @@
<p>Create pull request for a project on GitHub via commandline.</p>
<p>Uses the email from <code>git config user.email</code> to open the pull request.</p>
<h2 id="OPTIONS">OPTIONS</h2>
<p>&lt;target branch&gt;</p>
@ -105,7 +107,7 @@ Enter host password for user 'spacewanderlzx@gmail.com':
<h2 id="AUTHOR">AUTHOR</h2>
<p>Written by Tj Holowaychuk &lt;<a href="&#109;&#97;&#105;&#108;&#116;&#x6f;&#x3a;&#116;&#106;&#x40;&#118;&#105;&#115;&#105;&#x6f;&#110;&#45;&#x6d;&#101;&#100;&#105;&#x61;&#x2e;&#99;&#x61;" data-bare-link="true">&#116;&#106;&#x40;&#x76;&#105;&#x73;&#105;&#111;&#110;&#45;&#x6d;&#x65;&#x64;&#x69;&#x61;&#46;&#99;&#97;</a>&gt;</p>
<p>Written by Tj Holowaychuk &lt;<a href="&#109;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#58;&#x74;&#106;&#x40;&#x76;&#105;&#115;&#105;&#x6f;&#110;&#x2d;&#109;&#x65;&#x64;&#105;&#97;&#46;&#x63;&#97;" data-bare-link="true">&#116;&#106;&#x40;&#118;&#105;&#115;&#105;&#x6f;&#x6e;&#45;&#x6d;&#101;&#100;&#105;&#x61;&#x2e;&#99;&#x61;</a>&gt;</p>
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
@ -118,7 +120,7 @@ Enter host password for user 'spacewanderlzx@gmail.com':
<ol class='man-decor man-foot man foot'>
<li class='tl'></li>
<li class='tc'>July 2016</li>
<li class='tc'>August 2016</li>
<li class='tr'>git-pull-request(1)</li>
</ol>

View file

@ -9,6 +9,8 @@ git-pull-request(1) -- Create pull request for GitHub project
Create pull request for a project on GitHub via commandline.
Uses the email from `git config user.email` to open the pull request.
## OPTIONS
&lt;target branch&gt;