From 5d267749a693bcb467121ac727c6576a385758a7 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Tue, 29 Mar 2011 08:58:12 -0700 Subject: [PATCH] docs --- Readme.md | 9 +++ man/git-extras.1 | 3 + man/git-extras.html | 3 +- man/git-extras.md | 1 + man/git-pull-request.1 | 36 ++++++++++++ man/git-pull-request.html | 113 ++++++++++++++++++++++++++++++++++++++ man/git-pull-request.md | 29 ++++++++++ man/git-undo.1 | 2 +- man/git-undo.html | 4 +- 9 files changed, 196 insertions(+), 4 deletions(-) create mode 100644 man/git-pull-request.1 create mode 100644 man/git-pull-request.html create mode 100644 man/git-pull-request.md diff --git a/Readme.md b/Readme.md index 5d5739f..2d175d6 100644 --- a/Readme.md +++ b/Readme.md @@ -23,6 +23,7 @@ Brew (buggy): - git summary - git changelog - git commits-since + - git pull-request - git count - git delete-branch - git delete-submodule @@ -50,6 +51,14 @@ For example if you wish to update to the latest version of git-extras simply exe Sets up the `gh-pages` branch. +## git-pull-request <number> + + Pulls the given request `number` from github, and applies it + via `git am`. The git config `github.user` must be present, and + the dirname must map to `https://github.com//` + + git pull-request 604 + ## git-contrib Output a user's contributions to a project, based on the author name: diff --git a/man/git-extras.1 b/man/git-extras.1 index 5edcf26..242fe6b 100644 --- a/man/git-extras.1 +++ b/man/git-extras.1 @@ -50,6 +50,9 @@ .IP "\(bu" 4 \fBgit\-undo\fR undo one or more of the latest commits . +.IP "\(bu" 4 +\fBgit\-pull\-request\fR pulls the given request from github +. .IP "" 0 . .SH "AUTHOR" diff --git a/man/git-extras.html b/man/git-extras.html index ea934bb..38a837c 100644 --- a/man/git-extras.html +++ b/man/git-extras.html @@ -92,12 +92,13 @@
  • git-summary repository summary & contrib
  • git-touch touch and add file to the index
  • git-undo undo one or more of the latest commits
  • +
  • git-pull-request pulls the given request from github
  • AUTHOR

    -

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

    +

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

    REPORTING BUGS

    diff --git a/man/git-extras.md b/man/git-extras.md index 636a274..82af460 100644 --- a/man/git-extras.md +++ b/man/git-extras.md @@ -20,6 +20,7 @@ git-extras(1) -- Awesome GIT utilities - `git-summary` repository summary & contrib - `git-touch` touch and add file to the index - `git-undo` undo one or more of the latest commits + - `git-pull-request` pulls the given request from github ## AUTHOR diff --git a/man/git-pull-request.1 b/man/git-pull-request.1 new file mode 100644 index 0000000..036fe60 --- /dev/null +++ b/man/git-pull-request.1 @@ -0,0 +1,36 @@ +.\" generated with Ronn/v0.7.3 +.\" http://github.com/rtomayko/ronn/tree/0.7.3 +. +.TH "GIT\-PULL\-REQUEST" "1" "March 2011" "" "Git Extras" +. +.SH "NAME" +\fBgit\-pull\-request\fR \- Pulls a github request +. +.SH "SYNOPSIS" +\fBgit\-pull\-request\fR [number] +. +.SH "DESCRIPTION" +Pulls the given request number the project in the \fBCWD\fR and applies it via \fBgit am\fR\. +. +.SH "EXAMPLES" +Pull https://github\.com/visionmedia/express/pull/604\. +. +.IP "" 4 +. +.nf + +$ cd projects/express +$ git pull\-request 604 +. +.fi +. +.IP "" 0 +. +.SH "AUTHOR" +Written by TJ Holowaychuk <\fItj@vision\-media\.ca\fR> +. +.SH "REPORTING BUGS" +<\fIhttp://github\.com/visionmedia/git\-extras/issues\fR> +. +.SH "SEE ALSO" +<\fIhttp://github\.com/visionmedia/git\-extras\fR> diff --git a/man/git-pull-request.html b/man/git-pull-request.html new file mode 100644 index 0000000..f6d80a9 --- /dev/null +++ b/man/git-pull-request.html @@ -0,0 +1,113 @@ + + + + + + git-pull-request(1) - Pulls a github request + + + + +
    + + + +
      +
    1. git-pull-request(1)
    2. +
    3. Git Extras
    4. +
    5. git-pull-request(1)
    6. +
    + +

    NAME

    +

    + git-pull-request - Pulls a github request +

    + +

    SYNOPSIS

    + +

    git-pull-request [number]

    + +

    DESCRIPTION

    + +

    Pulls the given request number the project in the CWD and applies it via git am.

    + +

    EXAMPLES

    + +

    Pull https://github.com/visionmedia/express/pull/604.

    + +
    $ cd projects/express
    +$ git pull-request 604
    +
    + +

    AUTHOR

    + +

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

    + +

    REPORTING BUGS

    + +

    <http://github.com/visionmedia/git-extras/issues>

    + +

    SEE ALSO

    + +

    <http://github.com/visionmedia/git-extras>

    + + +
      +
    1. +
    2. March 2011
    3. +
    4. git-pull-request(1)
    5. +
    + +
    + + diff --git a/man/git-pull-request.md b/man/git-pull-request.md new file mode 100644 index 0000000..11f737f --- /dev/null +++ b/man/git-pull-request.md @@ -0,0 +1,29 @@ +git-pull-request(1) -- Pulls a github request +==================================== + +## SYNOPSIS + +`git-pull-request` [number] + +## DESCRIPTION + + Pulls the given request number the project in the __CWD__ and applies it via `git am`. + +## EXAMPLES + + Pull https://github.com/visionmedia/express/pull/604. + + $ cd projects/express + $ git pull-request 604 + +## AUTHOR + +Written by TJ Holowaychuk <> + +## REPORTING BUGS + +<> + +## SEE ALSO + +<> diff --git a/man/git-undo.1 b/man/git-undo.1 index b4b6404..3dbc81c 100644 --- a/man/git-undo.1 +++ b/man/git-undo.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-UNDO" "1" "October 2010" "" "Git Extras" +.TH "GIT\-UNDO" "1" "March 2011" "" "Git Extras" . .SH "NAME" \fBgit\-undo\fR \- Remove latest commits diff --git a/man/git-undo.html b/man/git-undo.html index 0c8635e..5149dd7 100644 --- a/man/git-undo.html +++ b/man/git-undo.html @@ -102,7 +102,7 @@

    AUTHOR

    -

    Written by Kenneth Reitz <me@kennethreitz.com>

    +

    Written by Kenneth Reitz <me@kennethreitz.com>

    REPORTING BUGS

    @@ -115,7 +115,7 @@
    1. -
    2. October 2010
    3. +
    4. March 2011
    5. git-undo(1)