From ebe7448e676b98502e58c8cdb59a5d59c29ee27c Mon Sep 17 00:00:00 2001 From: Nicolai Skogheim Date: Sun, 7 Aug 2016 09:43:07 +0200 Subject: [PATCH] pull-request: should read local config if present --- bin/git-pull-request | 2 +- man/git-pull-request.1 | 5 ++++- man/git-pull-request.html | 8 +++++--- man/git-pull-request.md | 2 ++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bin/git-pull-request b/bin/git-pull-request index 9aec0e8..0c945de 100755 --- a/bin/git-pull-request +++ b/bin/git-pull-request @@ -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 diff --git a/man/git-pull-request.1 b/man/git-pull-request.1 index f4390cd..59b4a75 100644 --- a/man/git-pull-request.1 +++ b/man/git-pull-request.1 @@ -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" . diff --git a/man/git-pull-request.html b/man/git-pull-request.html index e190e72..40144a7 100644 --- a/man/git-pull-request.html +++ b/man/git-pull-request.html @@ -65,7 +65,7 @@
  1. git-pull-request(1)
  2. -
  3. +
  4. Git Extras
  5. git-pull-request(1)
@@ -82,6 +82,8 @@

Create pull request for a project on GitHub via commandline.

+

Uses the email from git config user.email to open the pull request.

+

OPTIONS

<target branch>

@@ -105,7 +107,7 @@ Enter host password for user 'spacewanderlzx@gmail.com':

AUTHOR

-

Written by Tj Holowaychuk <tj@vision-media.ca>

+

Written by Tj Holowaychuk <tj@vision-media.ca>

REPORTING BUGS

@@ -118,7 +120,7 @@ Enter host password for user 'spacewanderlzx@gmail.com':
  1. -
  2. July 2016
  3. +
  4. August 2016
  5. git-pull-request(1)
diff --git a/man/git-pull-request.md b/man/git-pull-request.md index 133242c..b9b5e92 100644 --- a/man/git-pull-request.md +++ b/man/git-pull-request.md @@ -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 <target branch>