Permalink
Browse files

renamed memacs-git.org to memacs_git.org

Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
  • Loading branch information...
1 parent 2c60218 commit bc9a89897c642f3c0cf6681ef901c825cb35fc3a @awieser awieser committed Dec 22, 2011
Showing with 41 additions and 31 deletions.
  1. +0 −31 versioning_systems/memacs-git.org
  2. +41 −0 versioning_systems/memacs_git.org
@@ -1,31 +0,0 @@
-## Time-stamp: <2011-09-20 15:59:00 vk>
-## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/
-
-* memacs-git
-
-** Current status
-
- work in progress
-
-** Data Source
-
-: git rev-list --all --pretty=raw > /tmp/git-foo.raw
-[[http://en.wikipedia.org/wiki/Revision_control][Version control systems]] are quite common to manage all kind of data
-with. [[http://en.wikipedia.org/wiki/Git_(software)][git]] is a modern distributed system that has an enormous feature
-set.
-
-** Example Invocation
-
-work in progress
-
-** Example Orgmode entries
-
-Whenever user "Bob" commits a change set to an example project called
-"myproject", git-module can provide an entry like this:
-
-: ** myproject (Bob): solved the address field bug :git:Memacs:
-: <2011-07-23 Sat 16:00>
-: :PROPERTIES:
-: :CREATED: <2011-07-23 Sat 16:00>
-: :COMMIT: 528bb77ba94592bd86cd4bbe38bcb3ee9dcc276e
-: :END:
@@ -0,0 +1,41 @@
+## Time-stamp: <2011-12-22 Thu aw>
+## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/
+
+* memacs_git
+
+** Data Source
+
+[[http://en.wikipedia.org/wiki/Revision_control][Version control systems]] are quite common to manage all kind of data
+with. [[http://en.wikipedia.org/wiki/Git_(software)][git]] is a modern distributed system that has an enormous feature
+set.
+
+memacs_git.py parses the output of:
+: git rev-list --all --pretty=raw
+
+** Example Invocation
+*** Example with rev-list file:
+: git rev-list --all --pretty=raw > /tmp/file
+: ./memacs_git.py -f /tmp/file -o /path/to/git-project.org_archive
+
+*** Example Crontab Entry
+Every 60 minutes try to fetch something new from git repository and parse output
+
+: ORG_DIR="/home/user/orgmode/memacs"
+: MEMACS_DIR="/home/user/git/Memacs"
+: */60 * * * * /home/user/bin/no-power-supply.sh || cd "/home/user/git/Memacs" && git fetch && git rev-list --all --pretty=raw | $MEMACS_DIR/versioning_systems/memacs_git.py -o $ORG_DIR/git-memacs.org_archive
+
+** Example Orgmode entries
+
+Whenever user "Bob" commits a change set to an example project,
+memacs_git can provide an entry like this:
+
+: * Memacs for git files :Memacs:git:
+: ** Bob Bobman: added utf-8 support for stdin
+: :PROPERTIES:
+: :COMMIT: 5503912cde8ac94346a7c78583e2e6a6b9163582
+: :TREE: 845f83f4678963bad0504ce73161312c60de4d2f
+: :PARENT: 652601b94e640ea1225c415e603a6c8374219dd1
+: :AUTHOR: Bob Bobman <bob@example.com> 1324463332 +0100
+: :CREATED: <2011-12-21 Wed 11:28:52>
+: :COMMITTER: Bob Bobman <bob@examlpe.com> 1324463332 +0100
+: :END:

0 comments on commit bc9a898

Please sign in to comment.