From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: Store org-files in a git repository? Date: Fri, 7 Sep 2012 18:57:53 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=485b397dd5bd539ead04c9256041 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA8Qu-0001a1-19 for Emacs-orgmode@gnu.org; Fri, 07 Sep 2012 19:57:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TA8Qs-0004YG-Ss for Emacs-orgmode@gnu.org; Fri, 07 Sep 2012 19:57:55 -0400 Received: from mail-qa0-f41.google.com ([209.85.216.41]:45407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA8Qs-0004YA-Ma for Emacs-orgmode@gnu.org; Fri, 07 Sep 2012 19:57:54 -0400 Received: by qafk30 with SMTP id k30so45183qaf.0 for ; Fri, 07 Sep 2012 16:57:54 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Moritz Ulrich Cc: Emacs-orgmode --485b397dd5bd539ead04c9256041 Content-Type: text/plain; charset=ISO-8859-1 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 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 > > --485b397dd5bd539ead04c9256041 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I have not done yet, but I do use git for my org repo; however, I commit ev= ery 6 hours via cron (and the commit message is a timestamp). I'm plann= ing to do something similar to what you described, but I haven't used o= rg-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, Se= p 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


--485b397dd5bd539ead04c9256041--