Added git-extras, removed git-extras-version and git-extras-update

This commit is contained in:
Tj Holowaychuk 2011-03-27 09:01:40 -07:00
parent 27e8049fd7
commit 9e5b89842b
14 changed files with 151 additions and 91 deletions

20
bin/git-extras Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
VERSION="0.1.0"
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

View file

@ -1,2 +0,0 @@
#!/bin/sh
echo "0.1.0"

View file

@ -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"

59
man/git-extras.1 Normal file
View file

@ -0,0 +1,59 @@
.\" 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 "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 "" 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>

View file

@ -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-extras(1) - Awesome GIT utilities</title>
<style type='text/css' media='all'>
/* style: man */
body#manpage {margin:0}
@ -54,35 +54,45 @@
<div class='man-navigation' style='display:none'>
<a href="#NAME">NAME</a>
<a href="#SYNOPSIS">SYNOPSIS</a>
<a href="#DESCRIPTION">DESCRIPTION</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-update-extras(1)</li>
<li class='tl'>git-extras(1)</li>
<li class='tc'>Git Extras</li>
<li class='tr'>git-update-extras(1)</li>
<li class='tr'>git-extras(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-extras</code> - <span class="man-whatis">Awesome GIT utilities</span>
</p>
<h2 id="SYNOPSIS">SYNOPSIS</h2>
<h2 id="COMMANDS">COMMANDS</h2>
<p><code>git-update-extras</code></p>
<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 &amp; 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>
</ul>
<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>
<h2 id="AUTHOR">AUTHOR</h2>
<p>Written by Tj Holowaychuk &lt;<a href="&#109;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x74;&#106;&#64;&#x76;&#x69;&#115;&#105;&#111;&#x6e;&#x2d;&#x6d;&#101;&#100;&#105;&#97;&#x2e;&#99;&#x61;" data-bare-link="true">&#116;&#x6a;&#64;&#x76;&#105;&#115;&#x69;&#x6f;&#x6e;&#x2d;&#109;&#x65;&#100;&#x69;&#x61;&#x2e;&#x63;&#97;</a>&gt;</p>
<p>Written by Tj Holowaychuk &lt;<a href="&#109;&#97;&#x69;&#x6c;&#x74;&#111;&#x3a;&#x74;&#106;&#64;&#x76;&#105;&#115;&#105;&#111;&#110;&#45;&#x6d;&#101;&#x64;&#x69;&#97;&#46;&#99;&#97;" data-bare-link="true">&#116;&#106;&#64;&#118;&#x69;&#115;&#105;&#x6f;&#110;&#x2d;&#109;&#101;&#x64;&#105;&#97;&#x2e;&#x63;&#97;</a>&gt;</p>
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
@ -95,8 +105,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-extras(1)</li>
</ol>
</div>

30
man/git-extras.md Normal file
View file

@ -0,0 +1,30 @@
git-extras(1) -- Awesome GIT utilities
=================================
## 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
## AUTHOR
Written by Tj Holowaychuk &lt;<tj@vision-media.ca>&gt;
## REPORTING BUGS
&lt;<http://github.com/visionmedia/git-extras/issues>&gt;
## SEE ALSO
&lt;<http://github.com/visionmedia/git-extras>&gt;

View file

@ -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>]

View file

@ -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 &lt;<a href="&#109;&#x61;&#105;&#108;&#116;&#x6f;&#x3a;&#x6d;&#101;&#64;&#107;&#x65;&#x6e;&#x6e;&#101;&#116;&#x68;&#x72;&#x65;&#x69;&#116;&#x7a;&#46;&#x63;&#x6f;&#109;" data-bare-link="true">&#109;&#x65;&#64;&#107;&#101;&#110;&#x6e;&#101;&#x74;&#104;&#x72;&#101;&#x69;&#x74;&#122;&#x2e;&#99;&#x6f;&#109;</a>&gt;</p>
<p>Written by Kenneth Reitz &lt;<a href="&#109;&#97;&#x69;&#x6c;&#116;&#111;&#x3a;&#109;&#x65;&#x40;&#107;&#x65;&#110;&#110;&#x65;&#x74;&#x68;&#x72;&#101;&#x69;&#116;&#122;&#x2e;&#x63;&#111;&#x6d;" data-bare-link="true">&#x6d;&#x65;&#x40;&#107;&#101;&#110;&#110;&#x65;&#x74;&#104;&#114;&#101;&#105;&#x74;&#122;&#46;&#99;&#111;&#x6d;</a>&gt;</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>

View file

@ -1,4 +1,4 @@
git-graft(1) -- Merge commits together
git-graft(1) -- Merge and destroy a given branch
======================================
## SYNOPSIS

View file

@ -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
.

View file

@ -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 &lt;<a href="&#109;&#x61;&#x69;&#108;&#x74;&#x6f;&#58;&#116;&#106;&#64;&#118;&#x69;&#115;&#105;&#x6f;&#x6e;&#45;&#109;&#x65;&#100;&#105;&#x61;&#x2e;&#x63;&#97;" data-bare-link="true">&#x74;&#x6a;&#x40;&#x76;&#x69;&#115;&#x69;&#x6f;&#110;&#x2d;&#109;&#x65;&#x64;&#105;&#x61;&#x2e;&#99;&#97;</a>&gt;</p>
<p>Written by Tj Holowaychuk &lt;<a href="&#109;&#97;&#x69;&#x6c;&#x74;&#111;&#x3a;&#x74;&#106;&#64;&#x76;&#105;&#115;&#105;&#111;&#110;&#45;&#x6d;&#101;&#x64;&#x69;&#97;&#46;&#99;&#97;" data-bare-link="true">&#116;&#106;&#64;&#118;&#x69;&#115;&#105;&#x6f;&#110;&#x2d;&#109;&#101;&#x64;&#105;&#97;&#x2e;&#x63;&#97;</a>&gt;</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>

View file

@ -1,4 +1,4 @@
git-ignore(1) -- Ignore untracked files
git-ignore(1) -- Add .gitignore patterns
=======================================
## SYNOPSIS

View file

@ -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>

View file

@ -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 &lt;<tj@vision-media.ca>&gt;
## REPORTING BUGS
&lt;<http://github.com/visionmedia/git-extras/issues>&gt;
## SEE ALSO
&lt;<http://github.com/visionmedia/git-extras>&gt;