diff --git a/bin/git-extras b/bin/git-extras new file mode 100755 index 0000000..e6d1d47 --- /dev/null +++ b/bin/git-extras @@ -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 \ No newline at end of file diff --git a/bin/git-extras-version b/bin/git-extras-version deleted file mode 100755 index 949aa3a..0000000 --- a/bin/git-extras-version +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -echo "0.1.0" \ No newline at end of file diff --git a/bin/git-update-extras b/bin/git-update-extras deleted file mode 100755 index 84e8ef0..0000000 --- a/bin/git-update-extras +++ /dev/null @@ -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" - \ No newline at end of file diff --git a/man/git-extras.1 b/man/git-extras.1 new file mode 100644 index 0000000..05dfea3 --- /dev/null +++ b/man/git-extras.1 @@ -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> diff --git a/man/git-update-extras.html b/man/git-extras.html similarity index 67% rename from man/git-update-extras.html rename to man/git-extras.html index 0405535..994b034 100644 --- a/man/git-update-extras.html +++ b/man/git-extras.html @@ -3,7 +3,7 @@ - git-update-extras(1) - Updates git extras + git-extras(1) - Awesome GIT utilities