forked from tj/git-extras
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/visionmedia/git-extras
- Loading branch information
Showing
30 changed files
with
510 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/sh | ||
|
||
src=$1 | ||
dst=${2-master} | ||
dst=$2 | ||
|
||
test -z $src && echo "source branch required." && exit 1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.