emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcelo de Moraes Serpa <celoserpa@gmail.com>
To: Moritz Ulrich <moritz@tarn-vedra.de>
Cc: Emacs-orgmode <Emacs-orgmode@gnu.org>
Subject: Re: Store org-files in a git repository?
Date: Fri, 7 Sep 2012 18:57:53 -0500	[thread overview]
Message-ID: <CACHMzOF1LNSJ25j6OmiJXEDhxzTQpLabRUpw4HLhCSAMf9D5fA@mail.gmail.com> (raw)
In-Reply-To: <m21uidxviy.fsf@tarn-vedra.de>

[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]

I have not done yet, but I do use git for my org repo; however, I commit
every 6 hours via cron (and the commit message is a timestamp). I'm
planning to do something similar to what you described, but I haven't used
org-merged-driver yet. I'll play with it and post my findings, if you do,
let us know how it goes as well!

- Marcelo.

On Fri, Sep 7, 2012 at 6:28 PM, Moritz Ulrich <moritz@tarn-vedra.de> wrote:

>
> Hello,
>
> I plan to put my org directory (where I keep among other my agenda
> files) under version control and would like to have some sort of
> specialized function for that.
>
> My dream setup would be a range of functions hooking into all sorts of
> org-mode hooks, automatically committing changes done via the agenda or
> other org functions together with a context dependent commit message.
>
> For example, changing a TODO item to DONE would commit this change to
> git with the following message:
>
> * Headline title: State changed to 'DONE'
>
> Archiving, refiling, etc. would do similar things.
>
> A use case is automatic, safe synchronization between different machines
> and generally having recoverable backups of my org setup.
>
> This setup should work pretty good with org-merge-driver.
>
>
> Has someone built something comparable to this? I'd like to give it a
> try but don't want to reinvent the wheel.
>
>
> Cheers,
> Moritz Ulrich
>
> --
> Moritz Ulrich
>
>

[-- Attachment #2: Type: text/html, Size: 1829 bytes --]

  reply	other threads:[~2012-09-07 23:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 23:28 Store org-files in a git repository? Moritz Ulrich
2012-09-07 23:57 ` Marcelo de Moraes Serpa [this message]
2012-09-08  0:26   ` Charles Philip Chan
2012-09-08  8:45 ` Achim Gratz
2012-09-10 22:23   ` Moritz Ulrich
2012-09-11  2:18     ` Marcelo de Moraes Serpa
2012-09-11 18:11       ` Achim Gratz
2012-09-14 11:15     ` Bernt Hansen
2012-09-12 14:18 ` Bastien
2012-09-12 16:52   ` Samuel Wales
2012-09-13 18:05     ` Marcelo de Moraes Serpa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACHMzOF1LNSJ25j6OmiJXEDhxzTQpLabRUpw4HLhCSAMf9D5fA@mail.gmail.com \
    --to=celoserpa@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=moritz@tarn-vedra.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).