mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge branch 'master' of git://github.com/visionmedia/git-extras
This commit is contained in:
commit
8c4cabd803
31
History.md
31
History.md
|
|
@ -8,6 +8,37 @@
|
|||
* git-setup: Create a directory if the provided one doesn't exist yet.
|
||||
* Fixed `git-ignore`: Don't fail if `.gitignore` file doesn't exist yet.
|
||||
|
||||
0.4.1 / 2011-04-05
|
||||
==================
|
||||
|
||||
* Changed; `git-graft` now defaults to current branch instead of master [Kenneth Reitz]
|
||||
|
||||
0.4.0 / 2011-04-05
|
||||
==================
|
||||
|
||||
* Added `git-refactor`
|
||||
* Added `git-bug`
|
||||
* Added `git-feature`
|
||||
|
||||
0.3.0 / 2011-03-29
|
||||
==================
|
||||
|
||||
* Added `git-pull-request`
|
||||
|
||||
0.2.0 / 2011-03-27
|
||||
==================
|
||||
|
||||
* Added `git-extras`
|
||||
* Added __LICENSE__
|
||||
* Removed `git-extras-version`, use `git extras --version`
|
||||
* Removed `git-extras-update`, use `git extras update`
|
||||
* Changed; make sure to get the last chronological tag, instead of relying on the bogus `git tag` sorting. [guillermo]
|
||||
|
||||
0.1.0 / 2011-02-10
|
||||
==================
|
||||
|
||||
* Added `gh-pages` command
|
||||
|
||||
0.0.7 / 2010-10-31
|
||||
==================
|
||||
|
||||
|
|
|
|||
22
LICENSE
Normal file
22
LICENSE
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (c) 2010-2011 TJ Holowaychuk <tj@vision-media.ca>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
1
Makefile
1
Makefile
|
|
@ -8,6 +8,7 @@ MAN_PAGES = $(MANS:.md=.1)
|
|||
|
||||
install:
|
||||
@mkdir -p $(MANPREFIX)
|
||||
@mkdir -p $(PREFIX)/bin
|
||||
@echo "... installing bins to $(PREFIX)/bin"
|
||||
@echo "... installing man pages to $(MANPREFIX)"
|
||||
@$(foreach BIN, $(BINS), \
|
||||
|
|
|
|||
49
Readme.md
49
Readme.md
|
|
@ -19,9 +19,11 @@ Brew (buggy):
|
|||
|
||||
## Commands
|
||||
|
||||
- git extras
|
||||
- git summary
|
||||
- git changelog
|
||||
- git commits-since
|
||||
- git pull-request
|
||||
- git count
|
||||
- git create-branch
|
||||
- git delete-branch
|
||||
|
|
@ -35,9 +37,50 @@ Brew (buggy):
|
|||
- git contrib
|
||||
- git repl
|
||||
- git undo
|
||||
- git update-extras
|
||||
- git gh-pages
|
||||
- git setup
|
||||
- git touch
|
||||
- git feature
|
||||
- git refactor
|
||||
- git bug
|
||||
|
||||
## extras
|
||||
|
||||
The main `git-extras` command, outputting the current `--version`, or listing the commands available via `--help`, or `updating` to the latest release.
|
||||
|
||||
For example if you wish to update to the latest version of git-extras simply execute:
|
||||
|
||||
$ git extras update
|
||||
|
||||
## gh-pages
|
||||
|
||||
Sets up the `gh-pages` branch.
|
||||
|
||||
## git-[feature|refactor|bug] [finish] <name>
|
||||
|
||||
Creates the given feature, refactor, or bug branch `name`:
|
||||
|
||||
$ git feature dependencies
|
||||
|
||||
Later we can check it out by issuing the same command:
|
||||
|
||||
$ git checkout master
|
||||
$ git feature dependencies
|
||||
|
||||
Finally when finished, we can add `finish`, merging it into the current branch:
|
||||
|
||||
$ git checkout master
|
||||
$ git feature finish dependencies
|
||||
|
||||
`feature` can be replaced with `bug`, or `refactor`.
|
||||
|
||||
## 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/<github.user>/<dirname>`
|
||||
|
||||
git pull-request 604
|
||||
|
||||
## git-contrib
|
||||
|
||||
|
|
@ -286,10 +329,6 @@ Remove the latest 3 commits:
|
|||
git undo 3
|
||||
|
||||
|
||||
## git-update-extras
|
||||
|
||||
Updates git extras. clones the repo to _/tmp/git-extras_, make installs, then cds back to the origin directory.
|
||||
|
||||
## git-setup [dir]
|
||||
|
||||
Set up a git repository if one doesn't exist, add all files and make an initial commit. _dir_ defaults to the current working directory.
|
||||
|
|
|
|||
12
bin/git-bug
Executable file
12
bin/git-bug
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test "$1" = "finish"; then
|
||||
test -z $2 && echo "bug <name> required." && exit 1
|
||||
branch=bug/$2
|
||||
git merge --no-ff $branch && git delete-branch $branch
|
||||
else
|
||||
test -z $1 && echo "bug <name> required." && exit 1
|
||||
branch=bug/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
git checkout $branch &> /dev/null
|
||||
fi
|
||||
|
|
@ -6,7 +6,8 @@ DATE=`date +'%Y-%m-%d'`
|
|||
HEAD="\nn.n.n / $DATE \n==================\n"
|
||||
|
||||
if test "$1" = "--list"; then
|
||||
version=`git tag | tail -n 1`
|
||||
version=`git for-each-ref refs/tags --sort=-authordate --format='%(refname)' \
|
||||
--count=1 | sed 's/^refs\/tags\///'`
|
||||
if test -z "$version"; then
|
||||
git log --pretty="format: * %s"
|
||||
else
|
||||
|
|
@ -20,4 +21,4 @@ else
|
|||
if [ -f $CHANGELOG ]; then cat $CHANGELOG >> $tmp; fi
|
||||
mv $tmp $CHANGELOG
|
||||
test -n "$EDITOR" && $EDITOR $CHANGELOG
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
20
bin/git-extras
Executable file
20
bin/git-extras
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
VERSION="0.4.1"
|
||||
|
||||
update() {
|
||||
local orig=$PWD
|
||||
cd /tmp \
|
||||
&& rm -fr ./git-extras \
|
||||
&& git clone --depth 1 http://github.com/visionmedia/git-extras.git \
|
||||
&& cd git-extras \
|
||||
&& make install \
|
||||
&& cd $orig \
|
||||
&& echo "... updated git-extras $VERSION -> $(git extras --version)"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
-v|--version) echo $VERSION && exit 0 ;;
|
||||
update) update ;;
|
||||
*) man git-extras ;;
|
||||
esac
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
echo "0.0.8"
|
||||
12
bin/git-feature
Executable file
12
bin/git-feature
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test "$1" = "finish"; then
|
||||
test -z $2 && echo "feature <name> required." && exit 1
|
||||
branch=feature/$2
|
||||
git merge --no-ff $branch && git delete-branch $branch
|
||||
else
|
||||
test -z $1 && echo "feature <name> required." && exit 1
|
||||
branch=feature/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
git checkout $branch &> /dev/null
|
||||
fi
|
||||
12
bin/git-gh-pages
Executable file
12
bin/git-gh-pages
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo 'setting up gh-pages'
|
||||
git symbolic-ref HEAD refs/heads/gh-pages \
|
||||
&& rm .git/index \
|
||||
&& git clean -fdx \
|
||||
&& echo 'My Page' > index.html \
|
||||
&& git add . \
|
||||
&& git commit -a -m 'Initial commit' \
|
||||
&& git push origin gh-pages \
|
||||
&& git fetch origin \
|
||||
&& echo 'complete'
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
src=$1
|
||||
dst=${2-master}
|
||||
dst=$2
|
||||
|
||||
test -z $src && echo "source branch required." && exit 1
|
||||
|
||||
|
|
|
|||
15
bin/git-pull-request
Executable file
15
bin/git-pull-request
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
request=$1
|
||||
repo=${PWD##*/}
|
||||
user=`git config github.user`
|
||||
url="https://github.com/$user/$repo/pull/$request.patch"
|
||||
|
||||
test -z "$request" && echo "pull request number required" && exit 1
|
||||
test -z "$repo" && echo "failed to detect repo" && exit 2
|
||||
test -z "$user" && echo "failed to fetch github.user" && exit 3
|
||||
|
||||
echo "pulling $url"
|
||||
curl -# $url \
|
||||
| git am --signoff \
|
||||
&& echo "completed pull request $request"
|
||||
12
bin/git-refactor
Executable file
12
bin/git-refactor
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test "$1" = "finish"; then
|
||||
test -z $2 && echo "refactor <name> required." && exit 1
|
||||
branch=refactor/$2
|
||||
git merge --no-ff $branch && git delete-branch $branch
|
||||
else
|
||||
test -z $1 && echo "refactor <name> required." && exit 1
|
||||
branch=refactor/$1
|
||||
git checkout -b $branch &> /dev/null
|
||||
git checkout $branch &> /dev/null
|
||||
fi
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
orig=$PWD
|
||||
version=`git extras-version`
|
||||
|
||||
cd /tmp \
|
||||
&& rm -fr ./git-extras \
|
||||
&& git clone --depth 1 http://github.com/visionmedia/git-extras.git \
|
||||
&& cd git-extras \
|
||||
&& make install \
|
||||
&& cd $orig \
|
||||
&& echo "... updated to git-extras $version"
|
||||
|
||||
65
man/git-extras.1
Normal file
65
man/git-extras.1
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
.\" generated with Ronn/v0.7.3
|
||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||
.
|
||||
.TH "GIT\-EXTRAS" "1" "March 2011" "" "Git Extras"
|
||||
.
|
||||
.SH "NAME"
|
||||
\fBgit\-extras\fR \- Awesome GIT utilities
|
||||
.
|
||||
.SH "SYNOPSIS"
|
||||
\fBgit\-extras\fR [\-v,\-\-version] [\-h,\-\-help] [update]
|
||||
.
|
||||
.SH "COMMANDS"
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-changelog\fR changelog population
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-commits\-since\fR show commit logs since some date
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-contrib\fR show a user\'s contribution
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-count\fR show commit count
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-fresh\-branch\fR create fresh branches
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-graft\fR merge and destroy a given branch
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-ignore\fR add \.gitignore patterns
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-release\fR commit, tag and push changes to the repository
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-setup\fR set up a git repository with initial commit
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-repl\fR GIT read\-eval\-print\-loop
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-summary\fR repository summary & contrib
|
||||
.
|
||||
.IP "\(bu" 4
|
||||
\fBgit\-touch\fR touch and add file to the index
|
||||
.
|
||||
.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"
|
||||
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>
|
||||
120
man/git-extras.html
Normal file
120
man/git-extras.html
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-extras(1) - Awesome GIT utilities</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
||||
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
||||
.mp h2 {margin:10px 0 0 0}
|
||||
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
||||
.mp h3 {margin:0 0 0 4ex}
|
||||
.mp dt {margin:0;clear:left}
|
||||
.mp dt.flush {float:left;width:8ex}
|
||||
.mp dd {margin:0 0 0 9ex}
|
||||
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
||||
.mp pre {margin-bottom:20px}
|
||||
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
||||
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
||||
.mp img {display:block;margin:auto}
|
||||
.mp h1.man-title {display:none}
|
||||
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
||||
.mp h2 {font-size:16px;line-height:1.25}
|
||||
.mp h1 {font-size:20px;line-height:2}
|
||||
.mp {text-align:justify;background:#fff}
|
||||
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
||||
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
||||
.mp u {text-decoration:underline}
|
||||
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
||||
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
||||
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
||||
.mp b.man-ref {font-weight:normal;color:#434241}
|
||||
.mp pre {padding:0 4ex}
|
||||
.mp pre code {font-weight:normal;color:#434241}
|
||||
.mp h2+pre,h3+pre {padding-left:0}
|
||||
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
||||
ol.man-decor {width:100%}
|
||||
ol.man-decor li.tl {text-align:left}
|
||||
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
||||
ol.man-decor li.tr {text-align:right;float:right}
|
||||
</style>
|
||||
</head>
|
||||
<!--
|
||||
The following styles are deprecated and will be removed at some point:
|
||||
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
||||
|
||||
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
||||
.man-navigation should be used instead.
|
||||
-->
|
||||
<body id='manpage'>
|
||||
<div class='mp' id='man'>
|
||||
|
||||
<div class='man-navigation' style='display:none'>
|
||||
<a href="#NAME">NAME</a>
|
||||
<a href="#SYNOPSIS">SYNOPSIS</a>
|
||||
<a href="#COMMANDS">COMMANDS</a>
|
||||
<a href="#AUTHOR">AUTHOR</a>
|
||||
<a href="#REPORTING-BUGS">REPORTING BUGS</a>
|
||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
||||
</div>
|
||||
|
||||
<ol class='man-decor man-head man head'>
|
||||
<li class='tl'>git-extras(1)</li>
|
||||
<li class='tc'>Git Extras</li>
|
||||
<li class='tr'>git-extras(1)</li>
|
||||
</ol>
|
||||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-extras</code> - <span class="man-whatis">Awesome GIT utilities</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<p><code>git-extras</code> [-v,--version] [-h,--help] [update]</p>
|
||||
|
||||
<h2 id="COMMANDS">COMMANDS</h2>
|
||||
|
||||
<ul>
|
||||
<li> <code>git-changelog</code> changelog population</li>
|
||||
<li> <code>git-commits-since</code> show commit logs since some date</li>
|
||||
<li> <code>git-contrib</code> show a user's contribution</li>
|
||||
<li> <code>git-count</code> show commit count</li>
|
||||
<li> <code>git-fresh-branch</code> create fresh branches</li>
|
||||
<li> <code>git-graft</code> merge and destroy a given branch</li>
|
||||
<li> <code>git-ignore</code> add .gitignore patterns</li>
|
||||
<li> <code>git-release</code> commit, tag and push changes to the repository</li>
|
||||
<li> <code>git-setup</code> set up a git repository with initial commit</li>
|
||||
<li> <code>git-repl</code> GIT read-eval-print-loop</li>
|
||||
<li> <code>git-summary</code> repository summary & contrib</li>
|
||||
<li> <code>git-touch</code> touch and add file to the index</li>
|
||||
<li> <code>git-undo</code> undo one or more of the latest commits</li>
|
||||
<li> <code>git-pull-request</code> pulls the given request from github</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
<p><<a href="http://github.com/visionmedia/git-extras/issues" data-bare-link="true">http://github.com/visionmedia/git-extras/issues</a>></p>
|
||||
|
||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
||||
|
||||
<p><<a href="http://github.com/visionmedia/git-extras" data-bare-link="true">http://github.com/visionmedia/git-extras</a>></p>
|
||||
|
||||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>March 2011</li>
|
||||
<li class='tr'>git-extras(1)</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
35
man/git-extras.md
Normal file
35
man/git-extras.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
git-extras(1) -- Awesome GIT utilities
|
||||
=================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`git-extras` [-v,--version] [-h,--help] [update]
|
||||
|
||||
## COMMANDS
|
||||
|
||||
- `git-changelog` changelog population
|
||||
- `git-commits-since` show commit logs since some date
|
||||
- `git-contrib` show a user's contribution
|
||||
- `git-count` show commit count
|
||||
- `git-fresh-branch` create fresh branches
|
||||
- `git-graft` merge and destroy a given branch
|
||||
- `git-ignore` add .gitignore patterns
|
||||
- `git-release` commit, tag and push changes to the repository
|
||||
- `git-setup` set up a git repository with initial commit
|
||||
- `git-repl` GIT read-eval-print-loop
|
||||
- `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>>
|
||||
|
||||
## REPORTING BUGS
|
||||
|
||||
<<http://github.com/visionmedia/git-extras/issues>>
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
<<http://github.com/visionmedia/git-extras>>
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
.\" generated with Ronn/v0.7.3
|
||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||
.
|
||||
.TH "GIT\-GRAFT" "1" "October 2010" "" "Git Extras"
|
||||
.TH "GIT\-GRAFT" "1" "March 2011" "" "Git Extras"
|
||||
.
|
||||
.SH "NAME"
|
||||
\fBgit\-graft\fR \- Merge commits together
|
||||
\fBgit\-graft\fR \- Merge and destroy a given branch
|
||||
.
|
||||
.SH "SYNOPSIS"
|
||||
\fBgit\-graft\fR <src\-branch> [<dest\-branch>]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-graft(1) - Merge commits together</title>
|
||||
<title>git-graft(1) - Merge and destroy a given branch</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-graft</code> - <span class="man-whatis">Merge commits together</span>
|
||||
<code>git-graft</code> - <span class="man-whatis">Merge and destroy a given branch</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
|
@ -96,7 +96,7 @@ $ git graft new_feature
|
|||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Kenneth Reitz <<a href="mailto:me@kennethreitz.com" data-bare-link="true">me@kennethreitz.com</a>></p>
|
||||
<p>Written by Kenneth Reitz <<a href="mailto:me@kennethreitz.com" data-bare-link="true">me@kennethreitz.com</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ $ git graft new_feature
|
|||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>October 2010</li>
|
||||
<li class='tc'>March 2011</li>
|
||||
<li class='tr'>git-graft(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
git-graft(1) -- Merge commits together
|
||||
git-graft(1) -- Merge and destroy a given branch
|
||||
======================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
|
@ -7,7 +7,7 @@ git-graft(1) -- Merge commits together
|
|||
|
||||
## DESCRIPTION
|
||||
|
||||
Merge commits from <src-branch> into <dest-branch> which defaults to <master>.
|
||||
Merge commits from <src-branch> into <dest-branch> which defaults to the current branch.
|
||||
|
||||
## OPTIONS
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
.\" generated with Ronn/v0.7.3
|
||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||
.
|
||||
.TH "GIT\-IGNORE" "1" "October 2010" "" "Git Extras"
|
||||
.TH "GIT\-IGNORE" "1" "March 2011" "" "Git Extras"
|
||||
.
|
||||
.SH "NAME"
|
||||
\fBgit\-ignore\fR \- Ignore untracked files
|
||||
\fBgit\-ignore\fR \- Add \.gitignore patterns
|
||||
.
|
||||
.SH "SYNOPSIS"
|
||||
\fBgit\-ignore\fR [<pattern>\.\.\.]
|
||||
\fBgit\-ignore\fR [<pattern>\|\.\|\.\|\.]
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
Adds the given _pattern_s to a gitignore file\.
|
||||
|
|
@ -22,9 +22,9 @@ To lazy to open up \fI\.gitignore\fR? me too! simply pass some patterns:
|
|||
.nf
|
||||
|
||||
$ git ignore build "*\.o" "*\.log"
|
||||
\.\.\. added \'build\'
|
||||
\.\.\. added \'*\.o\'
|
||||
\.\.\. added \'*\.log\'
|
||||
\|\.\|\.\|\. added \'build\'
|
||||
\|\.\|\.\|\. added \'*\.o\'
|
||||
\|\.\|\.\|\. added \'*\.log\'
|
||||
.
|
||||
.fi
|
||||
.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-ignore(1) - Ignore untracked files</title>
|
||||
<title>git-ignore(1) - Add .gitignore patterns</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-ignore</code> - <span class="man-whatis">Ignore untracked files</span>
|
||||
<code>git-ignore</code> - <span class="man-whatis">Add .gitignore patterns</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
|
@ -104,7 +104,7 @@ build
|
|||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ build
|
|||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>October 2010</li>
|
||||
<li class='tc'>March 2011</li>
|
||||
<li class='tr'>git-ignore(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
git-ignore(1) -- Ignore untracked files
|
||||
git-ignore(1) -- Add .gitignore patterns
|
||||
=======================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
|
|
|||
36
man/git-pull-request.1
Normal file
36
man/git-pull-request.1
Normal file
|
|
@ -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>
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<title>git-update-extras(1) - Updates git extras</title>
|
||||
<title>git-pull-request(1) - Pulls a github request</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
body#manpage {margin:0}
|
||||
|
|
@ -56,33 +56,42 @@
|
|||
<a href="#NAME">NAME</a>
|
||||
<a href="#SYNOPSIS">SYNOPSIS</a>
|
||||
<a href="#DESCRIPTION">DESCRIPTION</a>
|
||||
<a href="#EXAMPLES">EXAMPLES</a>
|
||||
<a href="#AUTHOR">AUTHOR</a>
|
||||
<a href="#REPORTING-BUGS">REPORTING BUGS</a>
|
||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
||||
</div>
|
||||
|
||||
<ol class='man-decor man-head man head'>
|
||||
<li class='tl'>git-update-extras(1)</li>
|
||||
<li class='tl'>git-pull-request(1)</li>
|
||||
<li class='tc'>Git Extras</li>
|
||||
<li class='tr'>git-update-extras(1)</li>
|
||||
<li class='tr'>git-pull-request(1)</li>
|
||||
</ol>
|
||||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-update-extras</code> - <span class="man-whatis">Updates git extras</span>
|
||||
<code>git-pull-request</code> - <span class="man-whatis">Pulls a github request</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<p><code>git-update-extras</code></p>
|
||||
<p><code>git-pull-request</code> [number]</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
<p> Updates git extras. Clones the repo to <em>/tmp/git-extras</em>, make installs, then cds back to the origin directory.</p>
|
||||
<p> Pulls the given request number the project in the <strong>CWD</strong> and applies it via <code>git am</code>.</p>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
||||
<p> Pull https://github.com/visionmedia/express/pull/604.</p>
|
||||
|
||||
<pre><code>$ cd projects/express
|
||||
$ git pull-request 604
|
||||
</code></pre>
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
<p>Written by TJ Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -95,8 +104,8 @@
|
|||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>October 2010</li>
|
||||
<li class='tr'>git-update-extras(1)</li>
|
||||
<li class='tc'>March 2011</li>
|
||||
<li class='tr'>git-pull-request(1)</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
29
man/git-pull-request.md
Normal file
29
man/git-pull-request.md
Normal file
|
|
@ -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 <<tj@vision-media.ca>>
|
||||
|
||||
## REPORTING BUGS
|
||||
|
||||
<<http://github.com/visionmedia/git-extras/issues>>
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
<<http://github.com/visionmedia/git-extras>>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Kenneth Reitz <<a href="mailto:me@kennethreitz.com" data-bare-link="true">me@kennethreitz.com</a>></p>
|
||||
<p>Written by Kenneth Reitz <<a href="mailto:me@kennethreitz.com" data-bare-link="true">me@kennethreitz.com</a>></p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>October 2010</li>
|
||||
<li class='tc'>March 2011</li>
|
||||
<li class='tr'>git-undo(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
.\" generated with Ronn/v0.7.3
|
||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||
.
|
||||
.TH "GIT\-UPDATE\-EXTRAS" "1" "October 2010" "" "Git Extras"
|
||||
.
|
||||
.SH "NAME"
|
||||
\fBgit\-update\-extras\fR \- Updates git extras
|
||||
.
|
||||
.SH "SYNOPSIS"
|
||||
\fBgit\-update\-extras\fR
|
||||
.
|
||||
.SH "DESCRIPTION"
|
||||
Updates git extras\. Clones the repo to \fI/tmp/git\-extras\fR, make installs, then cds back to the origin directory\.
|
||||
.
|
||||
.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>
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
git-update-extras(1) -- Updates git extras
|
||||
==========================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`git-update-extras`
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
Updates git extras. Clones the repo to _/tmp/git-extras_, make installs, then cds back to the origin directory.
|
||||
|
||||
## 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>>
|
||||
Loading…
Reference in a new issue