aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-26 14:39:45 +0200
committerGravatar Tom Willemse2013-05-26 14:39:45 +0200
commitdd41bb12727efc0d9951bb8ffd10d30f949e4b85 (patch)
treeded138cd38d62b3d5302110bd5e2eb7a8e8b6763
parent6c05056f84c0ca6fc79fdb2a375b425bc53944c2 (diff)
downloadgitto-dd41bb12727efc0d9951bb8ffd10d30f949e4b85.tar.gz
gitto-dd41bb12727efc0d9951bb8ffd10d30f949e4b85.zip
Update README and other files, add site/
-rw-r--r--CONTRIBUTING24
-rw-r--r--INSTALL36
-rw-r--r--README.org90
-rw-r--r--site/.gitignore1
-rw-r--r--site/Makefile10
-rw-r--r--site/index.org21
-rw-r--r--site/project.el17
-rw-r--r--site/stylesheet.css68
8 files changed, 216 insertions, 51 deletions
diff --git a/CONTRIBUTING b/CONTRIBUTING
new file mode 100644
index 0000000..e4d108e
--- /dev/null
+++ b/CONTRIBUTING
@@ -0,0 +1,24 @@
+# -*- mode: org; -*-
+#+STARTUP: showall
+
+If you wish to contribute you can use either the sources located on
+[[http://code.ryuslash.org/cgit.cgi/gitto/][ryuslash.org]] or the [[https://github.com/ryuslash/gitto][github]] sources.
+
+* Getting the source
+
+ If you wish to work on ~gitto~ you can get the sources by cloning the
+ repository:
+
+ : git clone git://ryusalsh.org/git-auto-commit-mode.git
+
+* Style
+
+ Use spaces, don't use tabs. If you can, keep lines shorter than 80
+ characters. Other than that, Emacs can handle indentation pretty
+ well. [[http://www.nongnu.org/geiser/][Geiser]] can help too, if you're using Emacs.
+
+* Patches
+
+ If you want to send any patches I prefer an email with the output
+ generated by =git request-pull=, possibly with =-p=, over things like
+ github pull requests, but nothing will be turned away.
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..10e7e1b
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,36 @@
+# -*- mode: org; -*-
+#+STARTUP: showall
+
+In order to install ~gitto~, just run:
+
+: make install
+
+This will install ~gitto~ to ~/usr/local/~, if you would like to install
+it somewhere else you can use the =DESTDIR= variable:
+
+: make install DESTDIR=/some/other/place
+
+This will install ~gitto~ to =/some/other/place/=.
+
+* Packages
+
+ - There is also a [[https://aur.archlinux.org/packages/gitto-git/][package]] in the [[http://aur.archlinux.org][Archlinux User Repository]], which
+ installs the latest git checkout.
+
+* Requirements
+
+ ~gitto~ requires [[http://www.gnu.org/software/guile/][GNU Guile]] version 2.0.9 or newer to be available.
+
+* Removal
+
+ If you're fed up with ~gitto~ and want it gone you can run:
+
+ : make uninstall
+
+ This will remove any ~gitto~ installed files from ~/usr/local/~. If you
+ used the =DESTDIR= variable during installation, you should give it
+ the same value here, like:
+
+ : make uninstall DESTDIR=/some/other/place
+
+ This will remove any ~gitto~ installed files from ~/some/other/place/~.
diff --git a/README.org b/README.org
index f5be725..2e44381 100644
--- a/README.org
+++ b/README.org
@@ -1,71 +1,59 @@
-* Gitto
+#+TITLE: gitto
+#+STARTUP: showall
- For lack of a better title.
-
- My simple utility to keep track of all the git repositories I have
- on my computer(s). Also an experiment in writing scheme.
-
- Written for [[http://gnu.org/software/guile][GNU Guile]] 2.0.x
-
-** Installation
-
- Installing ~gitto~ is not really necessary, but it *is* more
- convenient. In order to install it just run:
+* NAME
- : make install
+ gitto - A silly utility to track the status of some git
+ repositories.
- This will install ~gitto~ to ~/usr/local/~, if you would like it
- somewhere else you could use the ~DESTDIR~ variable:
+* SYNOPSIS
- : make install DESTDIR=/some/other/place
+ =gitto [command [subcommand] [args...]]=
- This will install ~gitto~ to ~/some/other/place/~.
+* DESCRIPTION
-** Removal
-
- If you're fed up with ~gitto~ and want it gone, and I do mean *now*,
- you can run:
-
- : make uninstall
-
- This will remove any ~gitto~ installed files from ~/usr/local/~, if you
- used the ~DESTDIR~ variable during installation, you should give it
- the same value here, like:
+ For lack of a better title.
- : make uninstall DESTDIR=/some/other/place
+ My simple utility to keep track of all the git repositories I have on
+ my computer(s). Also an experiment in writing scheme.
- This will remove any ~gitto~ installed files from ~/some/other/place/~.
+ Written for [[http://gnu.org/software/guile][GNU Guile]] 2.0.9 or newer
-** Usage
+* USAGE
- Usage is, hopefully, simple, first you have to register some repos:
+ Usage is, hopefully, simple, first you have to register some repos:
- : $ gitto -r ~/projects/project1
- : $ gitto -r ~/projects/project2
- : $ gitto -r ~/projects/project3
+ : $ gitto add ~/projects/project1
+ : $ gitto add ~/projects/project2
+ : $ gitto add ~/projects/project3
- Then you can call ~gitto~ without any argument to see a list of your
- repos and their statuses:
+ Then you can call ~gitto~ without any argument to see a list of your
+ repos and their statuses:
- : $ gitto
- : project1: 0 to push, 0 to pull and is dirty
- : project2: 5 to push, 2 to pull and is not dirty
- : project3: 0 to push, 1 to pull and is not dirty
+ : $ gitto
+ : project1: Worktree is dirty
+ : master: 0 to push and 0 to pull. Last update: 4 weeks ago
+ :
+ : project2: Worktree is clean
+ : master: 5 to push and 2 to pull. Last update: 2 days ago
+ :
+ : project3: Worktree is clean
+ : master: 0 to push and 1 to pull. Last update: 1 hour ago
- If you're done with one of your projects and no longer wish to
- track their status you can unregister them:
+ If you're done with one of your projects and no longer wish to track
+ their status you can unregister them:
- : $ gitto -R ~/projects/project1
+ : $ gitto remove ~/projects/project1
- If you require further assistance:
+ If you require further assistance:
- : $ gitto -h
+ : $ gitto help
-*** run-gitto
+** run-gitto
- As I mentioned, it is not completely necessary to install gitto, I
- have added a utility to run it straight from je project directory,
- although mostly for testing purposes.
+ It is not strictly necessary to install gitto, I have added a
+ utility to run it straight from je project directory, although
+ mostly for testing purposes.
- Using ~run-gitto~ works exactly the same as using ~gitto~ when it is
- installed.
+ Using ~run-gitto~ works exactly the same as using ~gitto~ when it is
+ installed.
diff --git a/site/.gitignore b/site/.gitignore
new file mode 100644
index 0000000..7523547
--- /dev/null
+++ b/site/.gitignore
@@ -0,0 +1 @@
+_publish/
diff --git a/site/Makefile b/site/Makefile
new file mode 100644
index 0000000..700cc6f
--- /dev/null
+++ b/site/Makefile
@@ -0,0 +1,10 @@
+.PHONY: export publish
+
+all:
+
+export:
+ emacs -batch -l project.el -f org-publish-all
+
+publish: export
+ rsync -avuz --delete --exclude='*~' _publish/ \
+ ryuslash.org:public_html/orgweb/projects/gitto
diff --git a/site/index.org b/site/index.org
new file mode 100644
index 0000000..ac160c5
--- /dev/null
+++ b/site/index.org
@@ -0,0 +1,21 @@
+#+TITLE: gitto
+#+HTML_LINK_HOME: http://ryuslash.org
+#+OPTIONS: num:nil toc:nil author:nil
+#+STARTUP: showall
+#+STYLE: <link rel="stylesheet" type="text/css" href="stylesheet.css" />
+
+#+BEGIN_CENTER
+[[http://code.ryuslash.org/cgit.cgi/gitto/][Browse source]]
+[[http://blog.ryuslash.org/tags/gitto][Read posts]]
+Dowlnoad: [[http://code.ryuslash.org/cgit.cgi/gitto/snapshot/gitto-master.tar.gz][TAR.GZ]], [[http://code.ryuslash.org/cgit.cgi/gitto/snapshot/gitto-master.zip][ZIP]]
+#+END_CENTER
+
+#+INCLUDE: "../README.org"
+
+* INSTALLING
+
+#+INCLUDE: "../INSTALL" :minlevel 2
+
+* CONTRIBUTING
+
+#+INCLUDE: "../CONTRIBUTING" :minlevel 2
diff --git a/site/project.el b/site/project.el
new file mode 100644
index 0000000..5448091
--- /dev/null
+++ b/site/project.el
@@ -0,0 +1,17 @@
+(require 'org-publish)
+
+(setq org-publish-project-alist
+ '(("gitto-files"
+ :base-directory "./"
+ :publishing-directory "_publish/"
+ :recursive nil
+ :base-extension "css"
+ :publishing-function org-publish-attachment)
+ ("gitto-org"
+ :base-directory "./"
+ :publishing-directory "_publish"
+ :recursive nil
+ :base-extension "org"
+ :publishing-function org-publish-org-to-html)
+ ("gitto-site"
+ :components ("gitto-org" "gitto-files"))))
diff --git a/site/stylesheet.css b/site/stylesheet.css
new file mode 100644
index 0000000..b661f7f
--- /dev/null
+++ b/site/stylesheet.css
@@ -0,0 +1,68 @@
+a
+{
+ color: #6d97bf;
+}
+
+a:visited
+{
+ color: #b27dbf;
+}
+
+body
+{
+ font-family: "DejaVu Sans", sans-serif;
+ background-color: #222224;
+ color: #eeeeec;
+}
+
+code,
+pre
+{
+ font-family: "Envy Code R", monospace;
+}
+
+h3, h4,
+.outline-text-2,
+.outline-text-3,
+.outline-text-4
+{
+ margin-left: 20px;
+}
+
+pre
+{
+ background-color: #111113;
+ color: #eeeeec;
+ border: 1px solid #a5a5a4;
+ border-radius: 2px;
+}
+
+ul
+{
+ margin-left: -20px;
+}
+
+#content
+{
+ width: 700px;
+}
+
+#org-div-home-and-up
+{
+ width: 750px;
+}
+
+#postamble
+{
+ font-size: 12px;
+ padding: 3px 5px;
+ border: 1px solid #a5a5a4;
+ width: 690px;
+}
+
+#postamble p
+{
+ margin: 0;
+ padding: 0;
+ line-height: 1.3em;
+}